(self)
| 363 | assert t.render().strip() == "45|6" |
| 364 | |
| 365 | def test_macro_escaping(self): |
| 366 | env = Environment(autoescape=lambda x: False) |
| 367 | template = "{% macro m() %}<html>{% endmacro %}" |
| 368 | template += "{% autoescape true %}{{ m() }}{% endautoescape %}" |
| 369 | assert env.from_string(template).render() |
| 370 | |
| 371 | def test_macro_scoping(self, env): |
| 372 | tmpl = env.from_string( |
nothing calls this directly
no test coverage detected