mirror of
https://github.com/python/cpython.git
synced 2025-07-23 03:05:38 +00:00
convert old fail* assertions to assert*
This commit is contained in:
parent
98d23f2e06
commit
c9c0f201fe
275 changed files with 4540 additions and 4540 deletions
|
@ -96,11 +96,11 @@ class uploadTestCase(PyPIRCCommandTestCase):
|
|||
# what did we send ?
|
||||
headers = dict(self.last_open.req.headers)
|
||||
self.assertEquals(headers['Content-length'], '2087')
|
||||
self.assert_(headers['Content-type'].startswith('multipart/form-data'))
|
||||
self.assertTrue(headers['Content-type'].startswith('multipart/form-data'))
|
||||
self.assertEquals(self.last_open.req.get_method(), 'POST')
|
||||
self.assertEquals(self.last_open.req.get_full_url(),
|
||||
'http://pypi.python.org/pypi')
|
||||
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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue