Test AuthenticationContext

This commit is contained in:
Montana
2019-03-04 13:47:49 -05:00
parent 720859efb6
commit 30cd77ff98
3 changed files with 25 additions and 5 deletions

View File

@@ -188,7 +188,7 @@ def test_can_dynamically_update_crls(tmpdir):
assert cache.crl_check(cert)
# override the original CRL with one that revokes atat.mil.crt
shutil.copyfile("tests/fixtures/test.der.crl", crl_file)
with pytest.raises(CRLRevocationException):
with pytest.raises(CRLInvalidException):
assert cache.crl_check(cert)
@@ -197,7 +197,7 @@ def test_throws_error_for_missing_issuer():
# this cert is self-signed, and so the application does not have a
# corresponding CRL for it
cert = open("tests/fixtures/{}.crt".format(FIXTURE_EMAIL_ADDRESS), "rb").read()
with pytest.raises(CRLRevocationException) as exc:
with pytest.raises(CRLInvalidException) as exc:
assert cache.crl_check(cert)
(message,) = exc.value.args
# objects that the issuer is missing