summaryrefslogtreecommitdiff
path: root/tests/template_tests/test_nodelist.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/template_tests/test_nodelist.py')
-rw-r--r--tests/template_tests/test_nodelist.py18
1 files changed, 15 insertions, 3 deletions
diff --git a/tests/template_tests/test_nodelist.py b/tests/template_tests/test_nodelist.py
index 46b48404dd..042702e3c0 100644
--- a/tests/template_tests/test_nodelist.py
+++ b/tests/template_tests/test_nodelist.py
@@ -56,9 +56,21 @@ class ErrorIndexTest(TestCase):
def test_correct_exception_index(self):
tests = [
('{% load bad_tag %}{% for i in range %}{% badsimpletag %}{% endfor %}', (38, 56)),
- ('{% load bad_tag %}{% for i in range %}{% for j in range %}{% badsimpletag %}{% endfor %}{% endfor %}', (58, 76)),
- ('{% load bad_tag %}{% for i in range %}{% badsimpletag %}{% for j in range %}Hello{% endfor %}{% endfor %}', (38, 56)),
- ('{% load bad_tag %}{% for i in range %}{% for j in five %}{% badsimpletag %}{% endfor %}{% endfor %}', (38, 57)),
+ (
+ '{% load bad_tag %}{% for i in range %}{% for j in range %}'
+ '{% badsimpletag %}{% endfor %}{% endfor %}',
+ (58, 76)
+ ),
+ (
+ '{% load bad_tag %}{% for i in range %}{% badsimpletag %}'
+ '{% for j in range %}Hello{% endfor %}{% endfor %}',
+ (38, 56)
+ ),
+ (
+ '{% load bad_tag %}{% for i in range %}{% for j in five %}'
+ '{% badsimpletag %}{% endfor %}{% endfor %}',
+ (38, 57)
+ ),
('{% load bad_tag %}{% for j in five %}{% badsimpletag %}{% endfor %}', (18, 37)),
]
context = Context({