aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hazmat/backends
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2015-12-24 21:14:11 -0500
committerAlex Gaynor <alex.gaynor@gmail.com>2015-12-24 21:14:11 -0500
commitfa431ca54dd5686855264d82d77fa2dbb061fa23 (patch)
tree06a15a8ce81fd25b2a9c3c0f14d507e22a367a3c /tests/hazmat/backends
parent48f17cb225abcf43f77915d152f6cc15b762c702 (diff)
parent7eaaf0c6126c677b6dd656a35faca391ebc96c9a (diff)
downloadcryptography-fa431ca54dd5686855264d82d77fa2dbb061fa23.tar.gz
cryptography-fa431ca54dd5686855264d82d77fa2dbb061fa23.tar.bz2
cryptography-fa431ca54dd5686855264d82d77fa2dbb061fa23.zip
Merge pull request #2559 from reaperhulk/crlbuilder
CertificateRevocationListBuilder
Diffstat (limited to 'tests/hazmat/backends')
-rw-r--r--tests/hazmat/backends/test_openssl.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/hazmat/backends/test_openssl.py b/tests/hazmat/backends/test_openssl.py
index fd4030f6..6c824d27 100644
--- a/tests/hazmat/backends/test_openssl.py
+++ b/tests/hazmat/backends/test_openssl.py
@@ -501,9 +501,12 @@ class TestOpenSSLSignX509Certificate(object):
backend.create_x509_certificate(object(), private_key, DummyHash())
-def test_crl_creation_not_implemented():
- with pytest.raises(NotImplementedError):
- backend.create_x509_crl("", "", "")
+class TestOpenSSLSignX509CertificateRevocationList(object):
+ def test_invalid_builder(self):
+ private_key = RSA_KEY_2048.private_key(backend)
+
+ with pytest.raises(TypeError):
+ backend.create_x509_crl(object(), private_key, hashes.SHA256())
class TestOpenSSLSerialisationWithOpenSSL(object):