Exemple #1
0
    def test_resource_string_missing(self):
        name = "invalid.jinja2"

        with self.assertRaises(exceptions.ResourceNotFound):
            utils.resource_string(name)
Exemple #2
0
    def test_resource_string_missing(self):
        name = 'invalid.jinja2'

        with self.assertRaises(exceptions.ResourceNotFound):
            utils.resource_string(name)
Exemple #3
0
    def test_resource_string(self):
        name = ["templates", "bind9-config.jinja2"]

        resource_string = utils.resource_string(*name)

        self.assertIsNotNone(resource_string)
Exemple #4
0
    def test_resource_string(self):
        name = ['templates', 'bind9-config.jinja2']

        resource_string = utils.resource_string(*name)

        self.assertIsNotNone(resource_string)