From e4150bcc07fb2c68e3c860c31766b4282bba8740 Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Tue, 27 Oct 2015 12:29:58 +0900 Subject: remove support for null points, improve docs --- tests/hazmat/primitives/test_asym_utils.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/hazmat/primitives/test_asym_utils.py b/tests/hazmat/primitives/test_asym_utils.py index c713e9c6..22551bc4 100644 --- a/tests/hazmat/primitives/test_asym_utils.py +++ b/tests/hazmat/primitives/test_asym_utils.py @@ -82,7 +82,8 @@ def test_decode_dss_invalid_asn1(): def test_encode_ec_point_none(): - assert encode_ec_point(ec.SECP384R1(), None, 100) == b"\x00" + with pytest.raises(ValueError): + encode_ec_point(ec.SECP384R1(), None, 100) def test_encode_wrong_curve_type(): @@ -106,7 +107,8 @@ def test_encode_ec_point(): def test_decode_ec_point_none(): - assert decode_ec_point(ec.SECP384R1(), b"\x00") == (None, None) + with pytest.raises(ValueError): + decode_ec_point(ec.SECP384R1(), b"\x00") def test_decode_ec_point(): -- cgit v1.2.3