summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2013-11-16 10:35:46 -0500
committerJason R. Coombs <jaraco@jaraco.com>2013-11-16 10:35:46 -0500
commitf169cafe969605899f196b8dfb86b0385e0da5ff (patch)
tree80da2ceee5828a3d65df7eefebdcb1c85b4d752e
parent5960d28f32e53337043371f95c7f349e34024f40 (diff)
downloadpython-setuptools-git-f169cafe969605899f196b8dfb86b0385e0da5ff.tar.gz
Issue #19586: Update remaining deprecated assertions to their preferred usage.
-rw-r--r--tests/test_upload.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_upload.py b/tests/test_upload.py
index 9a2265ee..8e8ff720 100644
--- a/tests/test_upload.py
+++ b/tests/test_upload.py
@@ -114,11 +114,11 @@ class uploadTestCase(PyPIRCCommandTestCase):
# what did we send ?
headers = dict(self.last_open.req.headers)
self.assertEqual(headers['Content-length'], '2087')
- self.assert_(headers['Content-type'].startswith('multipart/form-data'))
+ self.assertTrue(headers['Content-type'].startswith('multipart/form-data'))
self.assertEqual(self.last_open.req.get_method(), 'POST')
expected_url = 'https://pypi.python.org/pypi'
self.assertEqual(self.last_open.req.get_full_url(), expected_url)
- self.assert_(b'xxx' in self.last_open.req.data)
+ self.assertTrue(b'xxx' in self.last_open.req.data)
def test_suite():
return unittest.makeSuite(uploadTestCase)