示例#1
0
 def get_deploy_constraints(self):
     return (deploy_blacklist_to_constraints(self.get_deploy_blacklist()) +
             deploy_whitelist_to_constraints(self.get_deploy_whitelist()))
示例#2
0
 def get_deploy_constraints(self):
     return (deploy_blacklist_to_constraints(self.get_deploy_blacklist()) +
             deploy_whitelist_to_constraints(self.get_deploy_whitelist()))
示例#3
0
 def get_deploy_constraints(self):
     return deploy_whitelist_to_constraints(self.get_deploy_whitelist())
示例#4
0
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
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
示例#6
0
 def get_deploy_constraints(self):
     return deploy_whitelist_to_constraints(self.get_deploy_whitelist())