12 lines
426 B
Python
12 lines
426 B
Python
|
class TestMailSending:
|
||
|
def test_one_on_one(self, cmfactory, lp):
|
||
|
ac1, ac2 = cmfactory.get_online_accounts(2)
|
||
|
chat = cmfactory.get_accepted_chat(ac1, ac2)
|
||
|
|
||
|
lp.sec("ac1: prepare and send text message to ac2")
|
||
|
msg1 = chat.send_text("message0")
|
||
|
|
||
|
lp.sec("wait for ac2 to receive message")
|
||
|
msg2 = ac2._evtracker.wait_next_incoming_message()
|
||
|
assert msg2.text == "message0"
|