

def test_recursive(self):
    tmpl = env.from_string('{% for item in seq recursive -%}\n            [{{ item.a }}{% if item.b %}<{{ loop(item.b) }}>{% endif %}]\n        {%- endfor %}')
    assert (self.render(seq=[dict(a=1, b=[dict(a=1), dict(a=2)]), dict(a=2, b=[dict(a=1), dict(a=2)]), dict(a=3, b=[dict(a='a')])]) == '[1<[1][2]>][2<[1][2]>][3<[a]>]')

dataset/ETHPy150Open GeekTrainer/Flask/Work/Trivia - Module 5/env/Lib/site-packages/jinja2/testsuite/core_tags.py ForLoopTestCase.test_recursive/VarMisuse@21/81 `tmpl`->`self`