Exemplo n.º 1
0
 def test_find_account_by_name(self):
     self.new_account.save_account()
     test_account = Account("Medium", "Emma", "kindern")
     test_account.save_account()
     found_account = Account.find_by_accountName("Medium")
     self.assertEqual(found_account.account_name, "Medium")
Exemplo n.º 2
0
def find_account_credentials(accountname):
    return Account.find_by_accountName(accountname)
Exemplo n.º 3
0
 def test_find_account_by_name(self):
     self.new_account.save_account()
     test_account = Account("Facebook", "uwimana", "1234567")
     test_account.save_account()
     found_account = Account.find_by_accountName("Facebook")
     self.assertEqual(found_account.account_name,"Facebook")
Exemplo n.º 4
0
def find_account_credentials(accountname):
    '''
    function to search for accounts by name
    '''
    return Account.find_by_accountName(accountname)
Exemplo n.º 5
0
 def test_find_account_by_name(self):
     self.new_account.save_account()
     test_account = Account("Medium", "Tesire", "sweetest")
     test_account.save_account()
     found_account = Account.find_by_accountName("Medium")
     self.assertEqual(found_account.account_name,"Medium")