

def test_looploop(self):
    tmpl = env.from_string('{% for row in table %}\n            {%- set rowloop = loop -%}\n            {% for cell in row -%}\n                [{{ rowloop.index }}|{{ loop.index }}]\n            {%- endfor %}\n        {%- endfor %}')
    assert (tmpl.render(table=['ab', 'cd']) == '[1|1][1|2][2|1][2|2]')

dataset/ETHPy150Open GeekTrainer/Flask/Work/Trivia - Module 5/env/Lib/site-packages/jinja2/testsuite/core_tags.py ForLoopTestCase.test_looploop/original