def get_deploy_constraints(self): return (deploy_blacklist_to_constraints(self.get_deploy_blacklist()) + deploy_whitelist_to_constraints(self.get_deploy_whitelist()))
def get_deploy_constraints(self): return deploy_whitelist_to_constraints(self.get_deploy_whitelist())
def test_deploy_whitelist_to_constraints(): fake_whitelist = ['fake_location_type', ['fake_location', 'anotherfake_location']] expected_constraints = [['fake_location_type', 'LIKE', 'fake_location|anotherfake_location']] constraints = utils.deploy_whitelist_to_constraints(fake_whitelist) assert constraints == expected_constraints