diff options
| author | Claude Paroz <claude@2xlibre.net> | 2012-05-03 16:39:16 +0200 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2012-05-03 16:39:16 +0200 |
| commit | b52672d77822e88752cb178c8a359adde83ff0ba (patch) | |
| tree | 5289bd86172caf66b0b37dfe21737b757777c8f0 /tests/regressiontests/file_uploads | |
| parent | e84f79f05113f546810c1908c7baef99fb1e874a (diff) | |
Replaced deprecated TestCase methods. Refs #17049.
Diffstat (limited to 'tests/regressiontests/file_uploads')
| -rw-r--r-- | tests/regressiontests/file_uploads/tests.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/regressiontests/file_uploads/tests.py b/tests/regressiontests/file_uploads/tests.py index a461ce1702..b9ce3c2753 100644 --- a/tests/regressiontests/file_uploads/tests.py +++ b/tests/regressiontests/file_uploads/tests.py @@ -202,7 +202,7 @@ class FileUploadTests(TestCase): 'wsgi.input': client.FakePayload(payload), } got = json.loads(self.client.request(**r).content) - self.assertEquals(got, {}) + self.assertEqual(got, {}) def test_empty_multipart_handled_gracefully(self): """ @@ -217,7 +217,7 @@ class FileUploadTests(TestCase): 'wsgi.input': client.FakePayload(''), } got = json.loads(self.client.request(**r).content) - self.assertEquals(got, {}) + self.assertEqual(got, {}) def test_custom_upload_handler(self): # A small file (under the 5M quota) @@ -313,7 +313,7 @@ class FileUploadTests(TestCase): try: response = self.client.post('/file_uploads/upload_errors/', post_data) except reference_error.__class__ as err: - self.failIf( + self.assertFalse( str(err) == str(reference_error), "Caught a repeated exception that'll cause an infinite loop in file uploads." ) |
