diff options
author | Stephan Erb <steve-e@h3c.de> | 2009-11-10 23:08:25 +0300 |
---|---|---|
committer | Stephan Erb <steve-e@h3c.de> | 2009-11-10 23:08:25 +0300 |
commit | b4285302db1fb8583b19de3e9489c320ae766f4a (patch) | |
tree | fef0378019de32b53d009ac35c99bed2d4b41bfe /test | |
parent | 3ddc5ce78eb2e13fc1fa934e1b2670577802bb81 (diff) |
Make the GC_Contacts class 'account insensitive'. Instead, create an Account class which holds a GC_Contacts object.
The API has been preserved. For now the old Contacts() API has not been changed.
Diffstat (limited to 'test')
-rwxr-xr-x | test/runtests.py | 1 | ||||
-rw-r--r-- | test/unit/test_account.py | 19 |
2 files changed, 20 insertions, 0 deletions
diff --git a/test/runtests.py b/test/runtests.py index 5a9f5f663..4f8ebea30 100755 --- a/test/runtests.py +++ b/test/runtests.py @@ -41,6 +41,7 @@ modules = ( 'unit.test_xmpp_dispatcher_nb', 'unit.test_contacts', 'unit.test_gui_interface', 'unit.test_sessions', + 'unit.test_account', ) #modules = () diff --git a/test/unit/test_account.py b/test/unit/test_account.py new file mode 100644 index 000000000..faa577b7f --- /dev/null +++ b/test/unit/test_account.py @@ -0,0 +1,19 @@ +''' +Tests for Account classes +''' +import unittest + +import lib +lib.setup_env() + +from common.account import Account + +class Test(unittest.TestCase): + + def testInstantiate(self): + account = Account(gc_contacts=None) + + self.assertTrue(account.gc_contacts is None) + +if __name__ == "__main__": + unittest.main()
\ No newline at end of file |