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

Function test_private_other

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

Source from the content-addressed store, hash-verified

98
99
100def test_private_other(slave_channel):
101 chat = PrivateChat(channel=slave_channel, name="__name__", alias="__alias__", uid="__id__")
102 assert isinstance(chat.other, ChatMember)
103 assert not isinstance(chat.other, SelfChatMember)
104 assert not isinstance(chat.other, SystemChatMember)
105 assert chat.other in chat.members
106 assert chat.name == chat.other.name
107 assert chat.alias == chat.other.alias
108 assert chat.uid == chat.other.uid
109
110
111def test_system_other(slave_channel):

Callers

nothing calls this directly

Calls 1

PrivateChatClass · 0.90

Tested by

no test coverage detected