diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2016-03-11 10:31:33 -0400 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2016-03-11 10:31:33 -0400 |
commit | 418411ed7db0731cc2ed8e4a4e8301a29b25414c (patch) | |
tree | 9e4484f4f6e299e0d71d13dea3fe303d86ee73e2 | |
parent | 5e3dd4c4d432d8cf9084f5f1605f23027b5944ae (diff) | |
download | pyopenssl-418411ed7db0731cc2ed8e4a4e8301a29b25414c.tar.gz |
first revoked cert in the CRL has NID_crl_reason first in list
so we'll use the second revoked because to cover this branch we need to
see a NID that's not NID_crl_reason
-rw-r--r-- | tests/test_crypto.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_crypto.py b/tests/test_crypto.py index b43b63b..873fcb8 100644 --- a/tests/test_crypto.py +++ b/tests/test_crypto.py @@ -3044,8 +3044,8 @@ class RevokedTests(TestCase): """ crl = load_crl(FILETYPE_PEM, crlDataUnsupportedExtension) revoked = crl.get_revoked() - reason = revoked[0].get_reason() - assert reason is None + reason = revoked[1].get_reason() + assert reason == 'Unspecified' def test_reason(self): """ |