20 lines
430 B
Python
20 lines
430 B
Python
'''
|
|
Tests for Account classes
|
|
'''
|
|
import unittest
|
|
|
|
from gajim.common.account import Account
|
|
|
|
|
|
class Test(unittest.TestCase):
|
|
|
|
def testInstantiate(self):
|
|
account = Account(name='MyAcc', contacts=None, gc_contacts=None)
|
|
|
|
self.assertEqual('MyAcc', account.name)
|
|
self.assertTrue(account.gc_contacts is None)
|
|
self.assertTrue(account.contacts is None)
|
|
|
|
if __name__ == "__main__":
|
|
unittest.main()
|