def test_set_must_work_with_sam_resource_input(self): template = SamTemplate(self.template_dict) template.set("NewResource", SamResource({"Type": "something"})) # Set would modify the original template dictionary self.assertEquals(self.template_dict["Resources"].get("NewResource"), {"Type": "something"})
def test_set_must_add_to_template(self): template = SamTemplate(self.template_dict) template.set("NewResource", {"Type": "something"}) # Set would modify the original template dictionary self.assertEquals(self.template_dict["Resources"].get("NewResource"), {"Type": "something"})
def test_set_must_add_to_template(self): template = SamTemplate(self.template_dict) template.set("NewResource", {"Type": "something"}) # Set would modify the original template dictionary self.assertEqual(self.template_dict["Resources"].get("NewResource"), {"Type": "something"})
def test_set_must_work_with_sam_resource_input(self): template = SamTemplate(self.template_dict) template.set("NewResource", SamResource({"Type": "something"})) # Set would modify the original template dictionary self.assertEqual(self.template_dict["Resources"].get("NewResource"), {"Type": "something"})