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

def test_bad_404_template(self):

    settings.TEMPLATE_DIRS = (os.path.join(os.path.dirname(__file__), 'bad_templates'),)
    try:
        response = self.client.get('/no_such_view/')
        self.fail('Should    get    error    about    syntax    error    in    template')
    except TemplateSyntaxError:
        pass
