aboutsummaryrefslogtreecommitdiff
path: root/test/ec/test_model.py
blob: b9d4383639a0120de5a832c55c6614b5050ba089 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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)