def test_render_index_html(self): template_name = 'index.html' t = HTML_TEMPLATE_ENV.get_template(template_name) self.assertIsNotNone(t) d = dict(value=1) html = t.render(**d) self.assertIsInstance(html, basestring)
def test_can_find_and_load_template(self): template_name = 'index.html' t = HTML_TEMPLATE_ENV.get_template(template_name) self.assertIsNotNone(t)