示例#1
0
    def test_make_locator__default(self):
        renderer = Renderer()
        actual = renderer.make_locator()

        expected = Locator()

        self.assertEquals(type(actual), type(expected))
        self.assertEquals(actual.template_extension, expected.template_extension)
示例#2
0
    def test_make_locator__return_type(self):
        """
        Test that make_locator() returns a Locator.

        """
        renderer = Renderer()
        locator = renderer.make_locator()

        self.assertEquals(type(locator), Locator)
示例#3
0
    def test_make_locator__file_extension(self):
        """
        Test that make_locator() respects the file_extension attribute.

        """
        renderer = Renderer()
        renderer.file_extension = 'foo'

        locator = renderer.make_locator()

        self.assertEquals(locator.template_extension, 'foo')