Exemple #1
0
 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!')
Exemple #2
0
 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!')