Replaced deprecated TestCase methods. Refs #17049.

This commit is contained in:
Claude Paroz 2012-05-03 16:39:16 +02:00
parent e84f79f051
commit b52672d778
19 changed files with 80 additions and 80 deletions

View file

@ -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."
)