summaryrefslogtreecommitdiff
path: root/tests/template_backends/test_utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/template_backends/test_utils.py')
-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()