Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dax/jmc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rousselie <dax@happycoders.org>2007-05-24 00:54:37 +0400
committerDavid Rousselie <dax@happycoders.org>2007-05-24 00:54:37 +0400
commit7446d401a5a6ef247e43b2128dbfc3db9b43eba9 (patch)
tree31bfe528b977facfbce2d161e3e55f16cf5ab046 /src/jmc/model/tests
parentc13ad7ec932791c9e9b64dd0b358c712c3ea536d (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.py9
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__':