mirror of
https://github.com/chatmail/relay.git
synced 2026-05-10 16:04:37 +00:00
16 lines
623 B
Python
16 lines
623 B
Python
def test_remotelog(remotelog, imap_or_smtp):
|
|
lineproducer = remotelog.iter(imap_or_smtp.logcmd)
|
|
imap_or_smtp.connect()
|
|
assert imap_or_smtp.name in next(lineproducer)
|
|
|
|
|
|
def test_use_two_chatmailservers(cmfactory, maildomain2):
|
|
ac1 = cmfactory.new_online_configuring_account(cache=False)
|
|
cmfactory.switch_maildomain(maildomain2)
|
|
ac2 = cmfactory.new_online_configuring_account(cache=False)
|
|
cmfactory.bring_accounts_online()
|
|
cmfactory.get_accepted_chat(ac1, ac2)
|
|
domain1 = ac1.get_config("addr").split("@")[1]
|
|
domain2 = ac2.get_config("addr").split("@")[1]
|
|
assert domain1 != domain2
|