mirror of https://github.com/python/cpython
Correct long line
This commit is contained in:
parent
9d78e416f5
commit
b41c2547e0
|
@ -114,7 +114,8 @@ class uploadTestCase(PyPIRCCommandTestCase):
|
||||||
# what did we send ?
|
# what did we send ?
|
||||||
headers = dict(self.last_open.req.headers)
|
headers = dict(self.last_open.req.headers)
|
||||||
self.assertEqual(headers['Content-length'], '2087')
|
self.assertEqual(headers['Content-length'], '2087')
|
||||||
self.assertTrue(headers['Content-type'].startswith('multipart/form-data'))
|
content_type = headers['Content-type']
|
||||||
|
self.assertTrue(content_type.startswith('multipart/form-data'))
|
||||||
self.assertEqual(self.last_open.req.get_method(), 'POST')
|
self.assertEqual(self.last_open.req.get_method(), 'POST')
|
||||||
expected_url = 'https://pypi.python.org/pypi'
|
expected_url = 'https://pypi.python.org/pypi'
|
||||||
self.assertEqual(self.last_open.req.get_full_url(), expected_url)
|
self.assertEqual(self.last_open.req.get_full_url(), expected_url)
|
||||||
|
|
Loading…
Reference in New Issue