MCPcopy Create free account
hub / github.com/ehForwarderBot/ehForwarderBot / test_pickle

Function test_pickle

tests/test_chat.py:63–73  ·  view source on GitHub ↗
(slave_channel)

Source from the content-addressed store, hash-verified

61
62
63def test_pickle(slave_channel):
64 chat = PrivateChat(
65 channel=slave_channel,
66 uid="00001",
67 name="Chat",
68 alias="chaT"
69 )
70 chat_dup = pickle.loads(pickle.dumps(chat))
71 for attr in ("module_name", "module_id", "channel_emoji", "name",
72 "alias", "uid"):
73 assert getattr(chat, attr) == getattr(chat_dup, attr)
74
75
76def test_properties(slave_channel):

Callers

nothing calls this directly

Calls 1

PrivateChatClass · 0.90

Tested by

no test coverage detected