2009-11-10 21:08:25 +01:00
|
|
|
'''
|
|
|
|
Tests for Account classes
|
|
|
|
'''
|
|
|
|
import unittest
|
|
|
|
|
|
|
|
import lib
|
|
|
|
lib.setup_env()
|
|
|
|
|
2017-08-12 02:39:55 +02:00
|
|
|
from gajim.common.account import Account
|
2009-11-10 21:08:25 +01:00
|
|
|
|
|
|
|
class Test(unittest.TestCase):
|
|
|
|
|
2010-02-08 15:08:40 +01:00
|
|
|
def testInstantiate(self):
|
|
|
|
account = Account(name='MyAcc', contacts=None, gc_contacts=None)
|
|
|
|
|
2017-09-10 12:21:10 +02:00
|
|
|
self.assertEqual('MyAcc', account.name)
|
2010-02-08 15:08:40 +01:00
|
|
|
self.assertTrue(account.gc_contacts is None)
|
|
|
|
self.assertTrue(account.contacts is None)
|
2009-11-10 21:08:25 +01:00
|
|
|
|
|
|
|
if __name__ == "__main__":
|
2010-02-08 15:08:40 +01:00
|
|
|
unittest.main()
|