Example #1
0
    def test_render_path(self):
        """
        Test the render_path() method.

        """
        renderer = Renderer()
        path = get_data_path('say_hello.mustache')
        actual = renderer.render_path(path, to='foo')
        self.assertEqual(actual, "Hello, foo")
Example #2
0
    def test_render_path(self):
        """
        Test the render_path() method.

        """
        renderer = Renderer()
        path = get_data_path('say_hello.mustache')
        actual = renderer.render_path(path, to='foo')
        self.assertEqual(actual, "Hello, foo")
Example #3
0
 def test_render_name(self):
     """Test the render_name() method."""
     data_dir = get_data_path()
     renderer = Renderer(search_dirs=data_dir)
     actual = renderer.render_name("say_hello", to='foo')
     self.assertString(actual, "Hello, foo")
Example #4
0
 def test_render_name(self):
     """Test the render_name() method."""
     data_dir = get_data_path()
     renderer = Renderer(search_dirs=data_dir)
     actual = renderer.render_name("say_hello", to='foo')
     self.assertString(actual, "Hello, foo")