diff options
author | Jon Dufresne <jon.dufresne@gmail.com> | 2019-03-15 16:27:57 -0700 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2019-03-15 19:27:57 -0400 |
commit | 95b7699ffc4bdb32a504fccfd127f1b76a8a1d1c (patch) | |
tree | 436ce672484e93cae672f96d8f91d88ed4e02912 /tests/file_uploads | |
parent | 58ad030d05fa50cfed327368ab61defca3303e02 (diff) | |
download | django-95b7699ffc4bdb32a504fccfd127f1b76a8a1d1c.tar.gz |
Cleaned up exception message checking in some tests.
Diffstat (limited to 'tests/file_uploads')
-rw-r--r-- | tests/file_uploads/tests.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/file_uploads/tests.py b/tests/file_uploads/tests.py index 2824b6eb42..7b31d369b2 100644 --- a/tests/file_uploads/tests.py +++ b/tests/file_uploads/tests.py @@ -385,8 +385,8 @@ class FileUploadTests(TestCase): file.write(b'a' * (2 ** 21)) file.seek(0) - # AttributeError: You cannot alter upload handlers after the upload has been processed. - with self.assertRaises(AttributeError): + msg = 'You cannot alter upload handlers after the upload has been processed.' + with self.assertRaisesMessage(AttributeError, msg): self.client.post('/quota/broken/', {'f': file}) def test_fileupload_getlist(self): |