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)
Exemplo n.º 2
0
def find_accountcredential(number):
    return Accountcredential.find_by_number(number)