Use preferred assertEqual form. Correct indentation.

This commit is contained in:
Jason R. Coombs 2013-11-15 19:35:05 -05:00
parent cb37641bb4
commit 75c40aed55
1 changed files with 4 additions and 4 deletions

View File

@ -455,8 +455,8 @@ class SDistTestCase(PyPIRCCommandTestCase):
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()
@ -477,7 +477,7 @@ class SDistTestCase(PyPIRCCommandTestCase):
# rights (see #7408)
try:
for member in archive.getmembers():
self.assertEquals(member.uid, os.getuid())
self.assertEqual(member.uid, os.getuid())
finally:
archive.close()