aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2015-12-20 20:32:49 -0500
committerAlex Gaynor <alex.gaynor@gmail.com>2015-12-20 20:32:49 -0500
commit394cca58a7dbd7e34d111f8c78a8f2dabda3a4b3 (patch)
tree41e339b1b46f8531725e0fe6f27f976eb5863d05 /tests
parent45b8752fd2e7c40dcdbe655461815206d3372baf (diff)
parent9543a33eb63564c3fe04efbc451b2f6c742be4fe (diff)
downloadcryptography-394cca58a7dbd7e34d111f8c78a8f2dabda3a4b3.tar.gz
cryptography-394cca58a7dbd7e34d111f8c78a8f2dabda3a4b3.tar.bz2
cryptography-394cca58a7dbd7e34d111f8c78a8f2dabda3a4b3.zip
Merge pull request #2538 from reaperhulk/empty-crls-are-beautiful-too
support CRLs with no revoked certificates
Diffstat (limited to 'tests')
-rw-r--r--tests/test_x509.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/test_x509.py b/tests/test_x509.py
index 1a4c484b..511aac6b 100644
--- a/tests/test_x509.py
+++ b/tests/test_x509.py
@@ -299,6 +299,14 @@ class TestRevokedCertificate(object):
assert len(flags) == 0
+ def test_no_revoked_certs(self, backend):
+ crl = _load_cert(
+ os.path.join("x509", "custom", "crl_empty.pem"),
+ x509.load_pem_x509_crl,
+ backend
+ )
+ assert len(crl) == 0
+
def test_duplicate_entry_ext(self, backend):
crl = _load_cert(
os.path.join("x509", "custom", "crl_dup_entry_ext.pem"),