Commit 5960d28f authored by Jason R. Coombs's avatar Jason R. Coombs

Update more usage of assertEqual

parent 59262e8d
......@@ -329,8 +329,8 @@ class ArchiveUtilTestCase(support.TempdirManager,
archive = tarfile.open(archive_name)
try:
for member in archive.getmembers():
self.assertEquals(member.uid, 0)
self.assertEquals(member.gid, 0)
self.assertEqual(member.uid, 0)
self.assertEqual(member.gid, 0)
finally:
archive.close()
......
......@@ -115,9 +115,9 @@ class uploadTestCase(PyPIRCCommandTestCase):
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(),
'https://pypi.python.org/pypi')
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.assert_(b'xxx' in self.last_open.req.data)
def test_suite():
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment