def test_loops_work(self):
        t = "{% for i in items %}{% add 1 i as roomba %}{{roomba}}{% endfor %}"
        o = render(t, {'items':[1,2,3]})
        self.assertEqual(o, "234")
Does looping while setting a context variable work
dataset/ETHPy150Open justquick/django-native-tags/example_project/app/tests.py/TemplateTests.test_loops_work