summaryrefslogtreecommitdiff
path: root/tests/check_framework/test_templates.py
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2015-06-08 08:15:41 -0400
committerTim Graham <timograham@gmail.com>2015-06-08 08:15:41 -0400
commitc19bc2d5d49f373b274772fa6cd936dfd05761e7 (patch)
tree96e7d9797728ab2132337463100f135834fb98cb /tests/check_framework/test_templates.py
parentbbff3147f2cfa6c985b129f13b8be0826e7bc535 (diff)
Fixed tests from refs #24922 when run in reverse.
Diffstat (limited to 'tests/check_framework/test_templates.py')
-rw-r--r--tests/check_framework/test_templates.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/check_framework/test_templates.py b/tests/check_framework/test_templates.py
index 27ccf138a7..caaa8857a3 100644
--- a/tests/check_framework/test_templates.py
+++ b/tests/check_framework/test_templates.py
@@ -1,3 +1,5 @@
+from copy import deepcopy
+
from django.core.checks.templates import E001
from django.test import SimpleTestCase
from django.test.utils import override_settings
@@ -27,13 +29,13 @@ class CheckTemplateSettingsAppDirsTest(SimpleTestCase):
self.assertEqual(self.func(None), [E001])
def test_app_dirs_removed(self):
- TEMPLATES = self.TEMPLATES_APP_DIRS_AND_LOADERS[:]
+ TEMPLATES = deepcopy(self.TEMPLATES_APP_DIRS_AND_LOADERS)
del TEMPLATES[0]['APP_DIRS']
with self.settings(TEMPLATES=TEMPLATES):
self.assertEqual(self.func(None), [])
def test_loaders_removed(self):
- TEMPLATES = self.TEMPLATES_APP_DIRS_AND_LOADERS[:]
+ TEMPLATES = deepcopy(self.TEMPLATES_APP_DIRS_AND_LOADERS)
del TEMPLATES[0]['OPTIONS']['loaders']
with self.settings(TEMPLATES=TEMPLATES):
self.assertEqual(self.func(None), [])