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)
|
|
|
|
|
|
|
|
self.assertEquals('MyAcc', account.name)
|
|
|
|
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()
|