mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-14 11:10:30 +03:00
fix "DeprecationWarning: Please use assertEqual instead."
They've been deprecated since python 3.2, which was released a long time ago.
This commit is contained in:
parent
f68830127e
commit
547a57e693
3 changed files with 10 additions and 10 deletions
|
|
@ -55,13 +55,13 @@ class UpdateTest(unittest.TestCase):
|
|||
self.assertIsNotNone(sig, "sig is None")
|
||||
pysig = fdroidserver.update.getsig(apkfile)
|
||||
self.assertIsNotNone(pysig, "pysig is None")
|
||||
self.assertEquals(sig, fdroidserver.update.getsig(apkfile),
|
||||
"python sig not equal to java sig!")
|
||||
self.assertEquals(len(sig), len(pysig),
|
||||
"the length of the two sigs are different!")
|
||||
self.assertEqual(sig, fdroidserver.update.getsig(apkfile),
|
||||
"python sig not equal to java sig!")
|
||||
self.assertEqual(len(sig), len(pysig),
|
||||
"the length of the two sigs are different!")
|
||||
try:
|
||||
self.assertEquals(unhexlify(sig), unhexlify(pysig),
|
||||
"the length of the two sigs are different!")
|
||||
self.assertEqual(unhexlify(sig), unhexlify(pysig),
|
||||
"the length of the two sigs are different!")
|
||||
except TypeError as e:
|
||||
print(e)
|
||||
self.assertTrue(False, 'TypeError!')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue