def test_credential_exist(self): self.new_credential.save_details() the_credential = Credentials("Twitter", "silassakwa", "xxxcvdfg") credential_is_found = Credentials.if_credential_exist("Twitter") self.assertTrue(credential_is_found)
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_details() the_credential = Credentials("Twitter", "Jorim", "Ikrsqqfm") the_credential.save_details() credential_is_found = Credentials.if_credential_exist("Twitter") self.assertTrue(credential_is_found)
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() the_credential = Credentials("Twitter", "Macharia", "2017kare") the_credential.save_credentials() credential_is_found = Credentials.if_credential_exist("Twitter") self.assertTrue(credential_is_found)
def check_credentials(account): """ Function that check if a Credentials exists with that account name and return true or false """ return Credentials.if_credential_exist(account)
def check_credendtials(account): return Credentials.if_credential_exist(account)