1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Fixed #18169 -- NoReverseMatch not silenced if from block.super

This commit is contained in:
Anssi Kääriäinen
2013-05-30 10:25:58 +03:00
parent 84909377f2
commit 369b6fab25
5 changed files with 30 additions and 2 deletions

View File

@@ -444,6 +444,15 @@ class Templates(TestCase):
output = template.render(Context({}))
self.assertEqual(output, '1st time')
def test_super_errors(self):
"""
Test behavior of the raise errors into included blocks.
See #18169
"""
t = loader.get_template('included_content.html')
with self.assertRaises(urlresolvers.NoReverseMatch):
t.render(Context({}))
def test_templates(self):
template_tests = self.get_template_tests()
filter_tests = filters.get_filter_tests()