diff options
author | David Rousselie <dax@happycoders.org> | 2007-05-24 00:54:37 +0400 |
---|---|---|
committer | David Rousselie <dax@happycoders.org> | 2007-05-24 00:54:37 +0400 |
commit | 7446d401a5a6ef247e43b2128dbfc3db9b43eba9 (patch) | |
tree | 31bfe528b977facfbce2d161e3e55f16cf5ab046 /src/jmc/model/tests | |
parent | c13ad7ec932791c9e9b64dd0b358c712c3ea536d (diff) |
Add SMTPAccount with pluggable handlers
darcs-hash:20070523205437-86b55-a1f69f149e57ba943d7163337bcdc8fdecafae40.gz
Diffstat (limited to 'src/jmc/model/tests')
-rw-r--r-- | src/jmc/model/tests/account.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/jmc/model/tests/account.py b/src/jmc/model/tests/account.py index 64f77cc..fa5e96c 100644 --- a/src/jmc/model/tests/account.py +++ b/src/jmc/model/tests/account.py @@ -31,9 +31,9 @@ from sqlobject.dbconnection import TheURIOpener from jcl.model import account from jcl.model.account import Account, PresenceAccount -from jmc.model.account import MailAccount, POP3Account, IMAPAccount +from jmc.model.account import MailAccount, POP3Account, IMAPAccount, SMTPAccount -from jcl.model.tests.account import PresenceAccount_TestCase +from jcl.model.tests.account import Account_TestCase, PresenceAccount_TestCase from jmc.model.tests import email_generator, server if sys.platform == "win32": @@ -388,12 +388,17 @@ class IMAPAccount_TestCase(unittest.TestCase): register_fields = IMAPAccount.get_register_fields() self.assertEquals(len(register_fields), 16) +class SMTPAccount_TestCase(Account_TestCase): + def test_get_register_fields(self): + register_fields = SMTPAccount.get_register_fields() + self.assertEquals(len(register_fields), 7) def suite(): suite = unittest.TestSuite() suite.addTest(unittest.makeSuite(MailAccount_TestCase, 'test')) suite.addTest(unittest.makeSuite(POP3Account_TestCase, 'test')) suite.addTest(unittest.makeSuite(IMAPAccount_TestCase, 'test')) + suite.addTest(unittest.makeSuite(SMTPAccount_TestCase, 'test')) return suite if __name__ == '__main__': |