diff options
author | Victor Shyba <victor.shyba@gmail.com> | 2015-02-23 16:50:10 -0300 |
---|---|---|
committer | Victor Shyba <victor.shyba@gmail.com> | 2015-02-23 16:50:10 -0300 |
commit | b967397c20e216b3e2d34926765ee5c6e5fcb8c3 (patch) | |
tree | 1b0248bbc739508016dc8ed63f9b54b84ebdedd2 /service/test | |
parent | c37c3b425021eb485376b8b776c248afb2a9b2a6 (diff) |
for #174, mailer daemon is now filtered from suggestions
Diffstat (limited to 'service/test')
-rw-r--r-- | service/test/integration/test_contacts.py | 1 | ||||
-rw-r--r-- | service/test/unit/adapter/test_mail.py | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/service/test/integration/test_contacts.py b/service/test/integration/test_contacts.py index d96abd14..3a510346 100644 --- a/service/test/integration/test_contacts.py +++ b/service/test/integration/test_contacts.py @@ -100,6 +100,7 @@ class ContactsTest(SoledadTestBase): def _assert(contacts): self.assertNotIn('this_mail_was_bounced@domain.com', contacts) + self.assertNotIn("MAILER-DAEMON@domain.org (Mail Delivery System)", contacts) self.assertIn('this_mail_was_not@bounced.com', contacts) d.addCallback(_assert) return d diff --git a/service/test/unit/adapter/test_mail.py b/service/test/unit/adapter/test_mail.py index 4bf05d3f..54c421c7 100644 --- a/service/test/unit/adapter/test_mail.py +++ b/service/test/unit/adapter/test_mail.py @@ -224,7 +224,8 @@ class TestPixelatedMail(unittest.TestCase): not_bounced_mail = PixelatedMail.from_soledad(*not_bounced_leap_mail, soledad_querier=self.querier) self.assertTrue(bounced_mail.bounced) - self.assertEquals('this_mail_was_bounced@domain.com', bounced_mail.bounced) + self.assertIn('this_mail_was_bounced@domain.com', bounced_mail.bounced) + self.assertIn("MAILER-DAEMON@domain.org (Mail Delivery System)", bounced_mail.bounced) self.assertFalse(not_bounced_mail.bounced) def test_ignore_transient_failures(self): |