aboutsummaryrefslogtreecommitdiff
path: root/test/ec/test_group.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/ec/test_group.py')
-rw-r--r--test/ec/test_group.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/ec/test_group.py b/test/ec/test_group.py
index e3b3a72..ca0ea91 100644
--- a/test/ec/test_group.py
+++ b/test/ec/test_group.py
@@ -1,14 +1,14 @@
from unittest import TestCase
+from pyecsca.ec.curves import get_curve
from pyecsca.ec.point import InfinityPoint
-from .curves import get_secp128r1, get_curve25519
class AbelianGroupTests(TestCase):
def setUp(self):
- self.secp128r1 = get_secp128r1()
- self.curve25519 = get_curve25519()
+ self.secp128r1 = get_curve("secp128r1", "projective")
+ self.curve25519 = get_curve("curve25519", "xz")
def test_is_neutral(self):
assert self.secp128r1.is_neutral(InfinityPoint(self.secp128r1.curve.coordinate_model))
@@ -16,3 +16,4 @@ class AbelianGroupTests(TestCase):
def test_eq(self):
self.assertEqual(self.secp128r1, self.secp128r1)
self.assertNotEqual(self.secp128r1, self.curve25519)
+ self.assertNotEqual(self.secp128r1, None)