summaryrefslogtreecommitdiff
path: root/tests/settings_tests
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2018-04-17 12:55:12 -0400
committerTim Graham <timograham@gmail.com>2018-04-17 12:55:26 -0400
commitfff689ed982c9aeb1402446c4eb91c2fb5a2c832 (patch)
tree4a83e79ccf27f6e64cb041d33b639139017dd846 /tests/settings_tests
parente0a3cfaca0088d82e625627a57e56b9f1a77b011 (diff)
downloaddjango-fff689ed982c9aeb1402446c4eb91c2fb5a2c832.tar.gz
Added a test for a settings error message.
Diffstat (limited to 'tests/settings_tests')
-rw-r--r--tests/settings_tests/tests.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/settings_tests/tests.py b/tests/settings_tests/tests.py
index 5a618954ed..09c062c897 100644
--- a/tests/settings_tests/tests.py
+++ b/tests/settings_tests/tests.py
@@ -234,7 +234,8 @@ class SettingsTests(SimpleTestCase):
settings.TEST = 'test'
self.assertEqual('test', settings.TEST)
del settings.TEST
- with self.assertRaises(AttributeError):
+ msg = "'Settings' object has no attribute 'TEST'"
+ with self.assertRaisesMessage(AttributeError, msg):
getattr(settings, 'TEST')
def test_settings_delete_wrapped(self):