コード例 #1
0
    def test_find_by_number(self):

        self.new_accountcredential.save_accountcredential()
        test_accountcredential = Accountcredential(
            "Testaccount", "Testusername",
            "Testpassword")  # new accountcredential
        test_accountcredential.save_accountcredential()

        found_accountcredential = Accountcredential.find_by_number(
            "Testaccount")

        self.assertEqual(found_accountcredential.email,
                         test_accountcredential.email)
コード例 #2
0
ファイル: run.py プロジェクト: Ivy-N/Password-Locker
def find_accountcredential(number):
    return Accountcredential.find_by_number(number)