diff options
author | Tim Graham <timograham@gmail.com> | 2013-09-16 16:20:29 -0400 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2013-09-18 06:44:38 -0400 |
commit | 893198509e3b821a56a56e4326929e0613aad983 (patch) | |
tree | 74a953b02ee9a76b0fc59ce2aaff4d4205d1b0dd /tests/utils_tests/test_datastructures.py | |
parent | 50633e7353694ff54f14b04469be3792f286182f (diff) | |
download | django-893198509e3b821a56a56e4326929e0613aad983.tar.gz |
Fixed #15625 -- Made message in MultiValueDictKeyError less verbose.
Thanks margieroginski for the suggestion.
Diffstat (limited to 'tests/utils_tests/test_datastructures.py')
-rw-r--r-- | tests/utils_tests/test_datastructures.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/tests/utils_tests/test_datastructures.py b/tests/utils_tests/test_datastructures.py index 263a5d4be7..5887cad085 100644 --- a/tests/utils_tests/test_datastructures.py +++ b/tests/utils_tests/test_datastructures.py @@ -221,11 +221,7 @@ class MultiValueDictTests(SimpleTestCase): [('name', ['Adrian', 'Simon']), ('position', ['Developer'])]) - # MultiValueDictKeyError: "Key 'lastname' not found in - # <MultiValueDict: {'position': ['Developer'], - # 'name': ['Adrian', 'Simon']}>" - six.assertRaisesRegex(self, MultiValueDictKeyError, - r'"Key \'lastname\' not found in <MultiValueDict', + six.assertRaisesRegex(self, MultiValueDictKeyError, 'lastname', d.__getitem__, 'lastname') self.assertEqual(d.get('lastname'), None) |