def test_resource_string_missing(self): name = "invalid.jinja2" with self.assertRaises(exceptions.ResourceNotFound): utils.resource_string(name)
def test_resource_string_missing(self): name = 'invalid.jinja2' with self.assertRaises(exceptions.ResourceNotFound): utils.resource_string(name)
def test_resource_string(self): name = ["templates", "bind9-config.jinja2"] resource_string = utils.resource_string(*name) self.assertIsNotNone(resource_string)
def test_resource_string(self): name = ['templates', 'bind9-config.jinja2'] resource_string = utils.resource_string(*name) self.assertIsNotNone(resource_string)