aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_x509_ext.py
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2015-12-27 14:30:19 -0600
committerPaul Kehrer <paul.l.kehrer@gmail.com>2015-12-27 14:30:19 -0600
commitb39af8d7195757b5025417187376b04e387264a1 (patch)
tree3f146038efa03d282382be92013ca23623724c4e /tests/test_x509_ext.py
parent2eb69f6cf88d15e2c6c2383335d96f2a81fd8ffe (diff)
downloadcryptography-b39af8d7195757b5025417187376b04e387264a1.tar.gz
cryptography-b39af8d7195757b5025417187376b04e387264a1.tar.bz2
cryptography-b39af8d7195757b5025417187376b04e387264a1.zip
hash ne test
Diffstat (limited to 'tests/test_x509_ext.py')
-rw-r--r--tests/test_x509_ext.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_x509_ext.py b/tests/test_x509_ext.py
index 20d44c59..898f9bcf 100644
--- a/tests/test_x509_ext.py
+++ b/tests/test_x509_ext.py
@@ -840,7 +840,9 @@ class TestBasicConstraints(object):
def test_hash(self):
na = x509.BasicConstraints(ca=True, path_length=None)
na2 = x509.BasicConstraints(ca=True, path_length=None)
+ na3 = x509.BasicConstraints(ca=True, path_length=0)
assert hash(na) == hash(na2)
+ assert hash(na) != hash(na3)
def test_eq(self):
na = x509.BasicConstraints(ca=True, path_length=None)