

@setup({
    'first02': '{% autoescape off %}{{ a|first }} {{ b|first }}{% endautoescape %}',
})
def test_first02(self):
    output = self.engine.render_to_string('first02', {
        'a': ['a&b', 'x'],
        'b': [mark_safe('a&b'), 'x'],
    })
    self.assertEqual(output, 'a&b a&b')

dataset/ETHPy150Open django/django/tests/template_tests/filter_tests/test_first.py FirstTests.test_first02/original