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)
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)
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')