def test_render_simple(self): """DjangoEngine correctly renders ``Hello {{ name }}!`` template.""" engine = DjangoEngine() rendered = engine.render(u'Hello {{ name }}!', {'name': 'world'}) self.assertEqual(rendered, u'Hello world!')
def test_render_noop(self): """DjangoEngine correctly renders ``Hello world!`` template.""" engine = DjangoEngine() rendered = engine.render(u'Hello world!', {}) self.assertEqual(rendered, u'Hello world!')