Ejemplo n.º 1
0
 def test_render_template_string(self):
     self.assertEqual(
         utils.render_template('foo{{ bar }}', {'bar':'quux'}), 'fooquux')
Ejemplo n.º 2
0
 def test_render_template_file(self):
     self.assertEqual(
         utils.render_template('template.txt', {'bar':'quux'},
                               ('tests', 'test-utils')), 'fooquux')