aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hazmat/primitives/test_ec.py
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2014-12-10 18:21:46 -0600
committerPaul Kehrer <paul.l.kehrer@gmail.com>2014-12-10 18:21:46 -0600
commit285edf80abd3b1b59384e1021d10773150b1c3c3 (patch)
tree82b37308495575cead1386ff5bf0b9d646ab2f70 /tests/hazmat/primitives/test_ec.py
parent0ed7822a5fde4724a56259e986edc43bd8f599c7 (diff)
downloadcryptography-285edf80abd3b1b59384e1021d10773150b1c3c3.tar.gz
cryptography-285edf80abd3b1b59384e1021d10773150b1c3c3.tar.bz2
cryptography-285edf80abd3b1b59384e1021d10773150b1c3c3.zip
add NotImplemented handling
Diffstat (limited to 'tests/hazmat/primitives/test_ec.py')
-rw-r--r--tests/hazmat/primitives/test_ec.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/hazmat/primitives/test_ec.py b/tests/hazmat/primitives/test_ec.py
index 4c09ceac..84c447c1 100644
--- a/tests/hazmat/primitives/test_ec.py
+++ b/tests/hazmat/primitives/test_ec.py
@@ -372,6 +372,7 @@ class TestECNumbersEquality(object):
assert pub != ec.EllipticCurvePublicNumbers(1, 2, ec.SECP384R1())
assert pub != ec.EllipticCurvePublicNumbers(1, 3, ec.SECP192R1())
assert pub != ec.EllipticCurvePublicNumbers(2, 2, ec.SECP192R1())
+ assert pub != object()
def test_private_numbers_eq(self):
pub = ec.EllipticCurvePublicNumbers(1, 2, ec.SECP192R1())
@@ -395,3 +396,4 @@ class TestECNumbersEquality(object):
assert priv != ec.EllipticCurvePrivateNumbers(
1, ec.EllipticCurvePublicNumbers(1, 2, ec.SECP521R1())
)
+ assert priv != object()