def test_credential_exist(self): ''' test to check if we can return a Boolean if we cannot find the credential. ''' self.new_credential.save_account() test_credential = Credentials( "Linkedin", "EmmanuelMuchiri", "EVK£mm6bP") # new credential test_credential.save_account() credential_exists = Credentials.credential_exist("Linkedin") self.assertTrue(credential_exists)
def check_existing_credendtials(account_Name): """ Function that check if a Credentials exists with that account name and return a Boolean """ return Credentials.credential_exist(account_Name)