Esempio 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")
Esempio n. 2
0
def find_account_credentials(accountname):
    return Account.find_by_accountName(accountname)
Esempio 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")
Esempio n. 4
0
def find_account_credentials(accountname):
    '''
    function to search for accounts by name
    '''
    return Account.find_by_accountName(accountname)
Esempio 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")