MCPcopy
hub / github.com/wechaty/python-wechaty / test_accessory_classmethod_access_puppet

Function test_accessory_classmethod_access_puppet

tests/accessory_test.py:178–195  ·  view source on GitHub ↗

docstring

()

Source from the content-addressed store, hash-verified

176
177
178def test_accessory_classmethod_access_puppet() -> None:
179 """
180 docstring
181 """
182 user_class1 = get_user_class()
183 user_class2 = get_user_class()
184
185 user_class1.set_puppet(EXPECTED_PUPPET1)
186 user_class2.set_puppet(EXPECTED_PUPPET2)
187
188 assert user_class1.get_puppet() == EXPECTED_PUPPET1, \
189 'user_class1 should get the puppet from static value'
190
191 assert user_class2.get_puppet() == EXPECTED_PUPPET2, \
192 'user_class2 should get the puppet from static value'
193
194 assert user_class1.get_puppet() != user_class2.get_puppet(), \
195 'user_class1 & user_class2 get_puppet() should be different'
196
197
198def test_accessory_classmethod_access_wechaty() -> None:

Callers

nothing calls this directly

Calls 3

get_user_classFunction · 0.85
set_puppetMethod · 0.80
get_puppetMethod · 0.80

Tested by

no test coverage detected