From 9543a33eb63564c3fe04efbc451b2f6c742be4fe Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Sun, 20 Dec 2015 18:48:24 -0600 Subject: support CRLs with no revoked certificates --- tests/test_x509.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests') diff --git a/tests/test_x509.py b/tests/test_x509.py index 67066f04..5e5944a4 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"), -- cgit v1.2.3