def test_credential_exist(self): """ test to check if we can return a true or false based on whether we find or can't find the credential. """ self.new_credential.save_credentials() username_credential = Credential("Yahoo", "RaheBrhane", "Rahel45xs") username_credential.save_credentials() found_user = Credential.credential_exist("RaheBrhane") self.assertTrue(found_user)
def chec_credentials(username): return Credential.credential_exist(username)