def test_find_details_by_account(self): ''' test to check if we can find a details by account and display information ''' self.new_details.save_details() test_details = Details("", "", "", "") # new details test_details.save_details() found_details = Details.find_by_account("") self.assertEqual(found_details.password, test_details.password)
def test_find_details_by_account(self): ''' test to check if we can find a user details by account name and display information ''' self.new_details.save_details() test_details = Details("Test","user","0711223344","*****@*****.**") # new user details test_details.save_details() found_details = Details.find_by_account("0711223344") self.assertEqual(found_details.email,test_details.email)
def find_details(account): ''' Function that finds a details by account and returns the details ''' return Details.find_by_account(account)
def find_details(account): ''' Function that finds a user details by number and returns the user details ''' return Details.find_by_account(account)