'Errors found when rendering 404 error templates are re-raised'

@override_settings(TEMPLATES=[{'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': [os.path.join(os.path.dirname(__file__), 'bad_templates')]}])
def test_bad_404_template(self):

    with self.assertRaises(TemplateSyntaxError):
        self.client.get('/no_such_view/')
