aboutsummaryrefslogtreecommitdiff
path: root/test/ec/test_model.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/ec/test_model.py')
-rw-r--r--test/ec/test_model.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/ec/test_model.py b/test/ec/test_model.py
new file mode 100644
index 0000000..6effa45
--- /dev/null
+++ b/test/ec/test_model.py
@@ -0,0 +1,13 @@
+from unittest import TestCase
+
+from pyecsca.ec.model import (ShortWeierstrassModel, MontgomeryModel, EdwardsModel,
+ TwistedEdwardsModel)
+
+
+class CurveModelTests(TestCase):
+
+ def test_load(self):
+ self.assertGreater(len(ShortWeierstrassModel.coordinates), 0)
+ self.assertGreater(len(MontgomeryModel.coordinates), 0)
+ self.assertGreater(len(EdwardsModel.coordinates), 0)
+ self.assertGreater(len(TwistedEdwardsModel.coordinates), 0)