diff --git a/lib/Crypto/SelfTest/PublicKey/test_ECC_25519.py b/lib/Crypto/SelfTest/PublicKey/test_ECC_25519.py index 4ddf3cfc7..9f14131ff 100644 --- a/lib/Crypto/SelfTest/PublicKey/test_ECC_25519.py +++ b/lib/Crypto/SelfTest/PublicKey/test_ECC_25519.py @@ -105,13 +105,13 @@ def test_equal(self): def test_pai(self): pai = EccPoint(0, 1, curve="Ed25519") - 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)