diff options
Diffstat (limited to 'test/test_tgplugin.py')
-rw-r--r-- | test/test_tgplugin.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/test_tgplugin.py b/test/test_tgplugin.py index 3ba5c75..9564c43 100644 --- a/test/test_tgplugin.py +++ b/test/test_tgplugin.py @@ -40,3 +40,11 @@ class TestTGPlugin(TemplateTest): def test_string(self): t = tl.load_template('foo', "hello world") assert t.render() == "hello world" + + def test_render(self): + assert result_lines(tl.render({}, template='/index.html')) == [ + "this is index" + ] + assert result_lines(tl.render({}, template=u'/index.html')) == [ + "this is index" + ] |