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

Function test_accessory_classmethod_access_wechaty

tests/accessory_test.py:198–215  ·  view source on GitHub ↗

docstring

()

Source from the content-addressed store, hash-verified

196
197
198def test_accessory_classmethod_access_wechaty() -> None:
199 """
200 docstring
201 """
202 user_class1 = get_user_class()
203 user_class2 = get_user_class()
204
205 user_class1.set_wechaty(EXPECTED_WECHATY1)
206 user_class2.set_wechaty(EXPECTED_WECHATY2)
207
208 assert user_class1.get_wechaty() == EXPECTED_WECHATY1, \
209 'user_class1 should get the wechaty from static value'
210
211 assert user_class2.get_wechaty() == EXPECTED_WECHATY2, \
212 'user_class2 should get the puppet from static value'
213
214 assert user_class1.get_wechaty() != user_class2.get_wechaty(), \
215 'user_class1 & user_class2 get_wechaty() should be different'
216
217
218def test_payload_pickle():

Callers

nothing calls this directly

Calls 3

get_user_classFunction · 0.85
set_wechatyMethod · 0.80
get_wechatyMethod · 0.80

Tested by

no test coverage detected