def test_credentials_exists(self): ''' test to check if we can return a Boolean if we cannot find the credentials. ''' self.new_credentials.save_credentials() test_credentials = Credentials("fb", "Ventura", "0000") # new credentials test_credentials.save_credentials() credentials_exists = Credentials.credentials_exist("Ventura") self.assertTrue(credentials_exists)
def check_existing_credential(user_id): ''' Function that checks if a credentials exists with that user_id and return a boolean ''' return Credentials.credentials_exist(user_id)