Пример #1
0
 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)
Пример #2
0
 def test_escape_character(self, mutation):
     template_params = mutate(self.DEFAULT_TEMPLATE_PARAMS, mutation)
     res = render_template("pig.tpl", **template_params)
     self.assertValidPython(res)
Пример #3
0
 def test_green_path(self):
     res = render_template(self.TEMPLATE_NAME, **self.DEFAULT_TEMPLATE_PARAMS)
     self.assertValidPython(res)