def test_find_creditial(self): """ test to check if we can find a credential entry by account name and display the details of the credential """ self.new_creditials.save_user_creditials() test_creditial = Creditials('kerry','kerry1','joker1234') test_creditial.save_user_creditials() the_creditial = Creditials.find_by_number("kerry") self.assertEqual(the_creditial.account,test_creditial.account)
def find_credential(account): """ Function that finds a Credentials by an account name and returns the Credentials that belong to that account """ return Creditials.find_by_number(account)