diff options
author | Ruben Pollan <meskio@sindominio.net> | 2015-10-28 18:52:34 +0100 |
---|---|---|
committer | Ruben Pollan <meskio@sindominio.net> | 2015-11-23 17:13:33 +0100 |
commit | 6fd862abc9e8711bd4aa117697c5df85cf6f560a (patch) | |
tree | 6a31b4ecd4bff0333c16cf9377e29c5e869ec856 /src/leap/mx/tests | |
parent | ebc748d6dbe366d82e601c94f4191718b310bfae (diff) |
[feat] add '@deliver.local' to uuid
- Resolves: #5959
Diffstat (limited to 'src/leap/mx/tests')
-rw-r--r-- | src/leap/mx/tests/test_mail_receiver.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/leap/mx/tests/test_mail_receiver.py b/src/leap/mx/tests/test_mail_receiver.py index 3eeafbd..e72cb1a 100644 --- a/src/leap/mx/tests/test_mail_receiver.py +++ b/src/leap/mx/tests/test_mail_receiver.py @@ -37,6 +37,7 @@ from leap.mx.mail_receiver import MailReceiver BOUNCE_ADDRESS = "bounce@leap.se" BOUNCE_SUBJECT = "bounce subject" ADDRESS = "leap@leap.se" +UUID = "13d5203bdd09be1e638bdb1d315251cb" class MailReceiverTestCase(unittest.TestCase): @@ -78,8 +79,7 @@ class MailReceiverTestCase(unittest.TestCase): def test_single_mail(self): msg, path = self.addMail("foo bar") uuid, doc = yield self.defer_put_doc - orig_uuid = ADDRESS.split('@')[0] - self.assertEqual(uuid, orig_uuid) + self.assertEqual(uuid, UUID) decmsg = self.decryptDoc(doc) self.assertEqual(msg, decmsg) self.assertFalse(os.path.exists(path)) @@ -101,7 +101,8 @@ class MailReceiverTestCase(unittest.TestCase): frm="someone@domain.org", subject="sent subject"): msg = Message() msg.add_header("To", to) - msg.add_header("Delivered-To", to) + msg.add_header( + "Delivered-To", UUID + "@deliver.local") msg.add_header("From", frm) msg.add_header("Subject", subject) msg.set_payload(body) |