def test_find_credentials_by_account_name(self): ''' to check if we can find a credential by the account name and display more information about it ''' self.new_credentials.save_credentials() test_credentials = Credentials("Github","edithamadi","JAS5e") test_credentials.save_credentials() found_credentials = Credentials.find_by_account_name("Github") self.assertEqual(found_credentials.password,test_credentials.password)
def find_by_account_name(account_name): ''' Function that finds by account name. ''' return Credentials.find_by_account_name(account_name)
def find_credentials(first_name): ''' Function that finds a contact by number and returns the contact ''' return Credentials.find_by_account_name(first_name)