gajim-plural/test/unit/test_account.py

22 lines
457 B
Python
Raw Normal View History

'''
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
class Test(unittest.TestCase):
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)
self.assertTrue(account.gc_contacts is None)
self.assertTrue(account.contacts is None)
if __name__ == "__main__":
unittest.main()