diff options
| author | Berker Peksag <berker.peksag@gmail.com> | 2016-06-18 21:42:37 +0300 |
|---|---|---|
| committer | Berker Peksag <berker.peksag@gmail.com> | 2016-06-18 21:42:37 +0300 |
| commit | 574bde6ee98b09b974ac5e0adbe46eeebc5173b6 (patch) | |
| tree | 938d3605743063b01bb2f6402324ca29a77e67f0 /tests/test_upload.py | |
| parent | 7b9d0828be06389c7e81946ba049231396eb9f3d (diff) | |
| download | python-setuptools-git-574bde6ee98b09b974ac5e0adbe46eeebc5173b6.tar.gz | |
Issue #27349: Fix typo in distutils upload command
Diffstat (limited to 'tests/test_upload.py')
| -rw-r--r-- | tests/test_upload.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_upload.py b/tests/test_upload.py index 964aac7e..3eecf8af 100644 --- a/tests/test_upload.py +++ b/tests/test_upload.py @@ -130,13 +130,14 @@ class uploadTestCase(PyPIRCCommandTestCase): # what did we send ? headers = dict(self.last_open.req.headers) - self.assertEqual(headers['Content-length'], '2161') + self.assertEqual(headers['Content-length'], '2162') content_type = headers['Content-type'] self.assertTrue(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.assertTrue(b'xxx' in self.last_open.req.data) + self.assertIn(b'protocol_version', self.last_open.req.data) # The PyPI response body was echoed results = self.get_logs(INFO) |
