summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2016-03-11 10:31:33 -0400
committerPaul Kehrer <paul.l.kehrer@gmail.com>2016-03-11 10:31:33 -0400
commit418411ed7db0731cc2ed8e4a4e8301a29b25414c (patch)
tree9e4484f4f6e299e0d71d13dea3fe303d86ee73e2
parent5e3dd4c4d432d8cf9084f5f1605f23027b5944ae (diff)
downloadpyopenssl-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.py4
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):
"""