def test_config_override(self): constraints = yield get_constraints([]) instance_type = get_instance_type( {"default-instance-type": "whatever-they-typed"}, constraints) self.assertEquals(instance_type, "whatever-they-typed")
def assert_instance_type(self, strs, expected): constraints = yield get_constraints(strs) instance_type = get_instance_type({}, constraints) self.assertEquals(instance_type, expected)