From b39af8d7195757b5025417187376b04e387264a1 Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Sun, 27 Dec 2015 14:30:19 -0600 Subject: hash ne test --- tests/test_x509_ext.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/test_x509_ext.py') 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) -- cgit v1.2.3