X-Git-Url: https://git.tokkee.org/?p=roundup.git;a=blobdiff_plain;f=test%2Ftest_mailgw.py;fp=test%2Ftest_mailgw.py;h=6b64a30caae047aa1bfa85d54617ea632f614726;hp=0cd78d486ac1e41e849dc649a093847239827679;hb=840af79b7d2c41ed0dfd70b496b6b5f3ffefc510;hpb=1d785e9024cc06c4c4a098e767a2d24afb2a235d diff --git a/test/test_mailgw.py b/test/test_mailgw.py index 0cd78d4..6b64a30 100644 --- a/test/test_mailgw.py +++ b/test/test_mailgw.py @@ -2205,6 +2205,12 @@ This is a followup self.assertEqual(uidFromAddress(self.db, ('', 'user1@bar.com'), 0), i) self.assertEqual(uidFromAddress(self.db, ('', 'USER1@bar.com'), 0), i) + def testUserAlternateSubstringNomatch(self): + i = self.db.user.create(username='user1', address='user1@foo.com', + alternate_addresses='x-user1@bar.com') + self.assertEqual(uidFromAddress(self.db, ('', 'user1@bar.com'), 0), 0) + self.assertEqual(uidFromAddress(self.db, ('', 'USER1@bar.com'), 0), 0) + def testUserCreate(self): i = uidFromAddress(self.db, ('', 'user@foo.com'), 1) self.assertNotEqual(uidFromAddress(self.db, ('', 'user@bar.com'), 1), i)