]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #19586: Update remaining deprecated assertions to their preferred usage.
authorJason R. Coombs <jaraco@jaraco.com>
Sat, 16 Nov 2013 15:35:46 +0000 (10:35 -0500)
committerJason R. Coombs <jaraco@jaraco.com>
Sat, 16 Nov 2013 15:35:46 +0000 (10:35 -0500)
Lib/distutils/tests/test_upload.py

index 9a2265eeb880c681659bbf878235c4f7a0038386..8e8ff720aee6648225ff3380e17d4143f3ae419f 100644 (file)
@@ -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)