def test_optional_parameters(self, mutation): template_params = mutate(self.DEFAULT_TEMPLATE_PARAMS, mutation) res = render_template(self.TEMPLATE_NAME, **template_params) self.assertValidPython(res)
def test_escape_character(self, mutation): template_params = mutate(self.DEFAULT_TEMPLATE_PARAMS, mutation) res = render_template("pig.tpl", **template_params) self.assertValidPython(res)
def test_green_path(self): res = render_template(self.TEMPLATE_NAME, **self.DEFAULT_TEMPLATE_PARAMS) self.assertValidPython(res)