summaryrefslogtreecommitdiff
path: root/tests/template_backends
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2015-05-03 21:42:56 +0200
committerAymeric Augustin <aymeric.augustin@m4x.org>2015-05-03 21:49:16 +0200
commit1563b897c439370fe98e7902004cdcefc9ea5ceb (patch)
tree6221853aeb8062233f772673be0dd79a771aa4bd /tests/template_backends
parentdb0a0c4b8ae490d0596f2c210d3edba3d700374a (diff)
Fixed #24685 -- Fixed check for template name unicity.
Thanks Preston Timmons for the report.
Diffstat (limited to 'tests/template_backends')
-rw-r--r--tests/template_backends/test_utils.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/template_backends/test_utils.py b/tests/template_backends/test_utils.py
index 3d2de99015..c3eb6577a0 100644
--- a/tests/template_backends/test_utils.py
+++ b/tests/template_backends/test_utils.py
@@ -35,3 +35,12 @@ class TemplateStringsTests(SimpleTestCase):
engines.all()
with self.assertRaises(ImproperlyConfigured):
engines.all()
+
+ @override_settings(TEMPLATES=[{
+ 'BACKEND': 'django.template.backends.django.DjangoTemplates',
+ }, {
+ 'BACKEND': 'django.template.backends.django.DjangoTemplates',
+ }])
+ def test_backend_names_must_be_unique(self):
+ with self.assertRaises(ImproperlyConfigured):
+ engines.all()