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