def find_account_by_password(self):
        self.new_credential.save_credential()

        another_credential = Credential("James", "Gitau", "QWERTY")
        another_credential.save_credential()

        account_found = Credential.find_account("QWERTY")

        self.assertEqual(account_found.last_name, another_credential.last_name)
Beispiel #2
0
def find_account(passwrd):
    return Credential.find_account(psword)