diff options
author | Erik Trauschke <erik.trauschke@gmail.com> | 2015-10-13 09:42:53 -0700 |
---|---|---|
committer | Erik Trauschke <erik.trauschke@gmail.com> | 2015-10-13 09:42:53 -0700 |
commit | 3cdabaf2544b98c6c915ca6704f9e03fdd58e1e6 (patch) | |
tree | 4ec477edce1194b678f95499268e3c8b254005d0 /tests | |
parent | 396a282fd5febabe382dcdacf4e8a6c2395f0087 (diff) | |
download | cryptography-3cdabaf2544b98c6c915ca6704f9e03fdd58e1e6.tar.gz cryptography-3cdabaf2544b98c6c915ca6704f9e03fdd58e1e6.tar.bz2 cryptography-3cdabaf2544b98c6c915ca6704f9e03fdd58e1e6.zip |
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
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_x509.py | 3 |
1 files changed, 3 insertions, 0 deletions
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"), |