mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
This commit is contained in:
@@ -37,8 +37,9 @@ class TemplateStringsTests(SimpleTestCase):
|
||||
self.assertEqual(content, "Hello world!\n")
|
||||
|
||||
def test_get_template_non_existing(self):
|
||||
with self.assertRaises(TemplateDoesNotExist):
|
||||
with self.assertRaises(TemplateDoesNotExist) as e:
|
||||
self.engine.get_template('template_backends/non_existing.html')
|
||||
self.assertEqual(e.exception.backend, self.engine)
|
||||
|
||||
def test_get_template_syntax_error(self):
|
||||
# There's no way to trigger a syntax error with the dummy backend.
|
||||
|
||||
Reference in New Issue
Block a user