From 3beec05fa08399627b01eedec1555c8c697f4fdf Mon Sep 17 00:00:00 2001 From: Antoine Pitrou Date: Sat, 21 Dec 2013 22:19:46 +0100 Subject: Fix DeprecationWarnings in test suite --- tests/test_upload.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'tests/test_upload.py') 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) -- cgit v1.2.1