From b52672d77822e88752cb178c8a359adde83ff0ba Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Thu, 3 May 2012 16:39:16 +0200 Subject: Replaced deprecated TestCase methods. Refs #17049. --- tests/regressiontests/file_uploads/tests.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/regressiontests/file_uploads') 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." ) -- cgit v1.3