Skip to content

Commit

Permalink
use assertTrue instead of deprecated failUnless
Browse files Browse the repository at this point in the history
  • Loading branch information
xambroz authored and Legrandin committed May 14, 2023
1 parent 29b1171 commit d64618b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Crypto/SelfTest/PublicKey/test_ECC_448.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,13 +105,13 @@ def test_equal(self):

def test_pai(self):
pai = EccPoint(0, 1, curve="Ed448")
self.failUnless(pai.is_point_at_infinity())
self.assertTrue(pai.is_point_at_infinity())
self.assertEqual(pai, pai.point_at_infinity())

def test_negate(self):
negG = -self.pointG
sum = self.pointG + negG
self.failUnless(sum.is_point_at_infinity())
self.assertTrue(sum.is_point_at_infinity())

def test_addition(self):
self.assertEqual(self.pointG + self.pointG2, self.pointG3)
Expand Down

0 comments on commit d64618b

Please sign in to comment.