def test_find_user_by_name(self): """ test to check if we can find a user by using account name and display information """ self.new_credential.save_credential() test_credential = Credential("owinolawrence", "twitter", "2018") test_credential.save_credential() found_credential = Credential.find_by_name("twitter") self.assertEqual(found_credential.account_password, "2018")
def find_credential(account_name): ''' Function that finds credentials by account name ''' # new_credential = Credential(acc, name, password) return Credential.find_by_name(account_name)