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