Fix DeprecationWarnings in test suite

This commit is contained in:
Antoine Pitrou 2013-12-21 22:19:46 +01:00
parent 17c93260a6
commit 492b9893e1
4 changed files with 23 additions and 23 deletions

View file

@ -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)