aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hazmat/primitives
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2015-10-28 11:10:46 +0900
committerPaul Kehrer <paul.l.kehrer@gmail.com>2015-10-28 11:19:12 +0900
commit4ef99da4918d37ce34890c78a34f28755cb34ef7 (patch)
tree554457c88ab260fa90b27f8f1825820783f9cb05 /tests/hazmat/primitives
parentd3f4ecdbefe20f4f9cb8b74701c5757557e476e1 (diff)
downloadcryptography-4ef99da4918d37ce34890c78a34f28755cb34ef7.tar.gz
cryptography-4ef99da4918d37ce34890c78a34f28755cb34ef7.tar.bz2
cryptography-4ef99da4918d37ce34890c78a34f28755cb34ef7.zip
add ellipticcurvepublicnumbers repr
Diffstat (limited to 'tests/hazmat/primitives')
-rw-r--r--tests/hazmat/primitives/test_ec.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/hazmat/primitives/test_ec.py b/tests/hazmat/primitives/test_ec.py
index 5baaa3cd..d420e9c9 100644
--- a/tests/hazmat/primitives/test_ec.py
+++ b/tests/hazmat/primitives/test_ec.py
@@ -215,6 +215,11 @@ def test_from_encoded_point_not_a_curve():
)
+def test_ec_public_numbers_repr():
+ pn = ec.EllipticCurvePublicNumbers(2, 3, ec.SECP256R1())
+ assert repr(pn) == "<EllipticCurvePublicNumbers(curve=secp256r1, x=2, y=3>"
+
+
@pytest.mark.requires_backend_interface(interface=EllipticCurveBackend)
class TestECWithNumbers(object):
@pytest.mark.parametrize(