Example #1
0
 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")
Example #2
0
 def assert_instance_type(self, strs, expected):
     constraints = yield get_constraints(strs)
     instance_type = get_instance_type({}, constraints)
     self.assertEquals(instance_type, expected)