From 3cdabaf2544b98c6c915ca6704f9e03fdd58e1e6 Mon Sep 17 00:00:00 2001 From: Erik Trauschke Date: Tue, 13 Oct 2015 09:42:53 -0700 Subject: fix indentations change docs to indicate CRL objects are iterable fix docs for revoked certs make _decode_crl_reason more readable add __getitem__ method to CRL object remove double underscores --- tests/test_x509.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/test_x509.py') diff --git a/tests/test_x509.py b/tests/test_x509.py index c380b860..61e7a7d0 100644 --- a/tests/test_x509.py +++ b/tests/test_x509.py @@ -241,6 +241,9 @@ class TestRevokedCertificate(object): # Check that len() works for CRLs. assert len(crl) == 12 + # Check that direct access to revoked cert in CRL works + assert isinstance(crl[0], x509.RevokedCertificate) + def test_duplicate_entry_ext(self, backend): crl = _load_cert( os.path.join("x509", "custom", "crl_dup_entry_ext.pem"), -- cgit v1.2.3