MCPcopy Create free account
hub / github.com/chatmail/core / test_send_dot

Function test_send_dot

python/tests/test_1_online.py:352–362  ·  view source on GitHub ↗

Test that a single dot is properly escaped in SMTP protocol

(acfactory, lp)

Source from the content-addressed store, hash-verified

350
351
352def test_send_dot(acfactory, lp):
353 """Test that a single dot is properly escaped in SMTP protocol"""
354 ac1, ac2 = acfactory.get_online_accounts(2)
355 chat = acfactory.get_accepted_chat(ac1, ac2)
356
357 lp.sec("sending message")
358 msg_out = chat.send_text(".")
359
360 lp.sec("receiving message")
361 msg_in = ac2._evtracker.wait_next_incoming_message()
362 assert msg_in.text == msg_out.text
363
364
365def test_send_and_receive_message_markseen(acfactory, lp):

Callers

nothing calls this directly

Calls 5

secMethod · 0.80
get_online_accountsMethod · 0.45
get_accepted_chatMethod · 0.45
send_textMethod · 0.45

Tested by

no test coverage detected