summaryrefslogtreecommitdiff
path: root/tests/regressiontests/file_uploads
diff options
context:
space:
mode:
Diffstat (limited to 'tests/regressiontests/file_uploads')
-rw-r--r--tests/regressiontests/file_uploads/tests.py6
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."
)