@setup({'ifchanged-param05': '{% for d in days %}{% ifchanged d.day %}{{ d.day }}{% endifchanged %}'
                                 '{% for h in d.hours %}{% ifchanged d.day h %}{{ h }}{% endifchanged %}'
                                 '{% endfor %}{% endfor %}'})
    def test_ifchanged_param05(self):
        output = self.engine.render_to_string(
            'ifchanged-param05',
            {'days': [{'hours': [1, 2, 3], 'day': 1}, {'hours': [3], 'day': 2}]},
        )
        self.assertEqual(output, '112323')
Create and mostly configure a curl object for test, reusing existing if possible
dataset/ETHPy150Open django/django/tests/template_tests/syntax_tests/test_if_changed.py/IfChangedTagTests.test_ifchanged_param05--crossover with--dataset/ETHPy150Open svanoort/pyresttest/pyresttest/tests.py/Test.configure_curl