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