diff options
| author | Antoine Pitrou <solipsis@pitrou.net> | 2013-12-21 22:19:46 +0100 |
|---|---|---|
| committer | Antoine Pitrou <solipsis@pitrou.net> | 2013-12-21 22:19:46 +0100 |
| commit | 3beec05fa08399627b01eedec1555c8c697f4fdf (patch) | |
| tree | 36fa4311571c9cbe6d012af63b1ff2ab08e9e266 /tests/test_upload.py | |
| parent | 89924f9e965ce58b5ceab3545989e6d827931d2f (diff) | |
| download | python-setuptools-git-3beec05fa08399627b01eedec1555c8c697f4fdf.tar.gz | |
Fix DeprecationWarnings in test suite
Diffstat (limited to 'tests/test_upload.py')
| -rw-r--r-- | tests/test_upload.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/test_upload.py b/tests/test_upload.py index a474596e..df35b429 100644 --- a/tests/test_upload.py +++ b/tests/test_upload.py @@ -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.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(headers['Content-type'].startswith('multipart/form-data')) + self.assertEqual(self.last_open.req.get_method(), 'POST') + self.assertEqual(self.last_open.req.get_full_url(), + 'http://pypi.python.org/pypi') + self.assertIn(b'xxx', self.last_open.req.data) def test_suite(): return unittest.makeSuite(uploadTestCase) |
