def test_credential_exists(self): ''' test to check if we can return a Boolean if we cannot find the contact. ''' self.new_credential.save_credential() test_credential = Credentials("Twitter", "_ariso", "PyTh0n3!") # new credential test_credential.save_credential() credential_exists = Credentials.check_credential_exists("Twitter") self.assertTrue(credential_exists)
def check_credendtials(account): """ Function that checks if a Credential exists using the account name and returns a boolean """ return Credentials.check_credential_exists(account)