aboutsummaryrefslogtreecommitdiff
path: root/test/ec/test_pickle.py
diff options
context:
space:
mode:
authorJ08nY2024-01-26 18:29:04 +0100
committerJ08nY2024-01-26 18:29:04 +0100
commit4be1fda99b983ca0ee22fe47f8ccc311c86d7cfc (patch)
tree3215dbe35af367737b8ff44599f821af3fefd66f /test/ec/test_pickle.py
parent63da9293c39817cd7fe746cbd31e42f13f831091 (diff)
downloadpyecsca-4be1fda99b983ca0ee22fe47f8ccc311c86d7cfc.tar.gz
pyecsca-4be1fda99b983ca0ee22fe47f8ccc311c86d7cfc.tar.zst
pyecsca-4be1fda99b983ca0ee22fe47f8ccc311c86d7cfc.zip
Diffstat (limited to 'test/ec/test_pickle.py')
-rw-r--r--test/ec/test_pickle.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/ec/test_pickle.py b/test/ec/test_pickle.py
index 5d448b5..36f014d 100644
--- a/test/ec/test_pickle.py
+++ b/test/ec/test_pickle.py
@@ -55,6 +55,19 @@ def test_formula():
assert formulas == back
+def formula_target(formula):
+ return hasattr(formula, "coordinate_model")
+
+
+def test_formula_loads(ctx):
+ sw = ShortWeierstrassModel()
+ coords = sw.coordinates["projective"]
+ formula = coords.formulas["add-2007-bl"]
+ with ctx.Pool(processes=1) as pool:
+ res = pool.apply(formula_target, args=(formula,))
+ assert res
+
+
def test_code_formula():
sw = ShortWeierstrassModel()
coords = sw.coordinates["projective"]