mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Update more usage of assertEqual
This commit is contained in:
parent
e9f0311a0f
commit
6f87a08aa7
3 changed files with 8 additions and 8 deletions
|
@ -115,9 +115,9 @@ class uploadTestCase(PyPIRCCommandTestCase):
|
|||
headers = dict(self.last_open.req.headers)
|
||||
self.assertEqual(headers['Content-length'], '2087')
|
||||
self.assert_(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(),
|
||||
'https://pypi.python.org/pypi')
|
||||
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)
|
||||
|
||||
def test_suite():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue