def test_recent_account(self): 
     aa = AccountManager()
     aa.reset_config()
     url = 'hi.com'
     username = '******'
     password = None
     new_account = Account(url, username, password)
     aa.add_new_account(new_account)
     self.assertEqual(new_account, aa.get_account_by_id(1))
     self.assertEqual(new_account, aa.get_recent_account())
     self.assertEqual(AccountManager.get_default_account(), aa.get_account_by_id(0))
     self.assertEqual(AccountManager.get_default_account(), aa.get_recent_account())
 def test_recent_account(self):
     aa = AccountManager()
     aa.reset_config()
     url = 'hi.com'
     username = '******'
     password = None
     new_account = Account(url, username, password)
     aa.add_new_account(new_account)
     self.assertEqual(new_account, aa.get_account_by_id(1))
     self.assertEqual(new_account, aa.get_recent_account())
     self.assertEqual(AccountManager.get_default_account(),
                      aa.get_account_by_id(0))
     self.assertEqual(AccountManager.get_default_account(),
                      aa.get_recent_account())
 def test_default_account(self):
     aa = AccountManager()
     aa.reset_config()
     expected = AccountManager.get_default_account()
     self.assertEqual(aa.get_recent_account(), expected)
 def test_default_account(self):
     aa = AccountManager()
     aa.reset_config()
     expected = AccountManager.get_default_account() 
     self.assertEqual(aa.get_recent_account(), expected)