def test_credential_exists(self): """ test to check if we can return a Boolean if we cannot find the account name """ self.new_credential.save_credential() test_credential = Credential("owinolawrence", "twitter", "2018") test_credential.save_credential() credential_exist = Credential.credential_exists("twitter") self.assertTrue(credential_exist)
def test_credential_exist(self): """ testing if we can return a Boolean if the credential is not found """ self.new_credential.save_credential() test_credential = Credential("Arijm", "*****@*****.**", "instagram", "mango") #new credential test_credential.save_credential() credential_exists = Credential.credential_exists("Arijm") self.assertTrue(credential_exists)
def test_credential_exists(self): ''' checks if we can return a boolean if we cannot find the credentials ''' self.new_credential.save_credential() test_credential = Credential("Github","Gift-Lumumba","gL0711419032") test_credential.save_credential() credential_exists =Credential.credential_exists("Github") self.assertTrue(credential_exists)
def check_existing_credentials(account_name): ''' checks if a credential exists with that account_name and returns a Boolean value ''' return Credential.credential_exists(account_name)
def existing_credentials(name): ''' Functiion that checks if an account really exists ''' Credential.credential_exists(name)