summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7dbe30a)
raw | patch | inline | side by side (parent: 7dbe30a)
author | jlgijsbers <jlgijsbers@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Mon, 15 Sep 2003 19:35:53 +0000 (19:35 +0000) | ||
committer | jlgijsbers <jlgijsbers@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Mon, 15 Sep 2003 19:35:53 +0000 (19:35 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1877 57a73879-2fb5-44c3-a270-3262357dd7e2
test/test_mailgw.py | patch | blob | history |
diff --git a/test/test_mailgw.py b/test/test_mailgw.py
index 13cea7acf0eb0e1586d13f29472a210945a6c280..d846d7ab03556abf27ce5013615068fc466414e4 100644 (file)
--- a/test/test_mailgw.py
+++ b/test/test_mailgw.py
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
-# $Id: test_mailgw.py,v 1.51 2003-09-07 20:37:33 jlgijsbers Exp $
+# $Id: test_mailgw.py,v 1.52 2003-09-15 19:35:53 jlgijsbers Exp $
import unittest, tempfile, os, shutil, errno, imp, sys, difflib, rfc822
self.assertEqual(uidFromAddress(self.db, ('', 'USER2@foo.com'), 0), i)
self.assertEqual(uidFromAddress(self.db, ('', 'user2@foo.com'), 0), i)
+ def testUserAlternateLookup(self):
+ i = self.db.user.create(username='user1', address='user1@foo.com',
+ alternate_addresses='user1@bar.com')
+ self.assertEqual(uidFromAddress(self.db, ('', 'user1@bar.com'), 0), i)
+ self.assertEqual(uidFromAddress(self.db, ('', 'USER1@bar.com'), 0), i)
+
def testUserCreate(self):
i = uidFromAddress(self.db, ('', 'user@foo.com'), 1)
self.assertNotEqual(uidFromAddress(self.db, ('', 'user@bar.com'), 1), i)
def suite():
l = [unittest.makeSuite(MailgwTestCase),
]
+ l = [MailgwTestCase("testUserAlternateLookup")]
return unittest.TestSuite(l)