aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hazmat/backends/test_openssl.py
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2015-12-25 14:00:02 -0500
committerAlex Gaynor <alex.gaynor@gmail.com>2015-12-25 14:00:02 -0500
commitef5f9fc339a7137f5a9761f8c27a08c554c27b1c (patch)
tree95195d5a52f3ed575a2f7ac42f50187a08eae05a /tests/hazmat/backends/test_openssl.py
parent58dc259214ff05243ec4e72c86cc2c7a76ca6e02 (diff)
parentaa8b0f43db0f4708ecf12ba2a2034ba6165d5f76 (diff)
downloadcryptography-ef5f9fc339a7137f5a9761f8c27a08c554c27b1c.tar.gz
cryptography-ef5f9fc339a7137f5a9761f8c27a08c554c27b1c.tar.bz2
cryptography-ef5f9fc339a7137f5a9761f8c27a08c554c27b1c.zip
Merge pull request #2570 from reaperhulk/revokedcertificate-interface
add create_x509_revoked_certificate to x509backend interface
Diffstat (limited to 'tests/hazmat/backends/test_openssl.py')
-rw-r--r--tests/hazmat/backends/test_openssl.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/hazmat/backends/test_openssl.py b/tests/hazmat/backends/test_openssl.py
index c1fa653c..af064d18 100644
--- a/tests/hazmat/backends/test_openssl.py
+++ b/tests/hazmat/backends/test_openssl.py
@@ -509,6 +509,12 @@ class TestOpenSSLSignX509CertificateRevocationList(object):
backend.create_x509_crl(object(), private_key, hashes.SHA256())
+class TestOpenSSLCreateRevokedCertificate(object):
+ def test_not_yet_implemented(self):
+ with pytest.raises(NotImplementedError):
+ backend.create_x509_revoked_certificate(object())
+
+
class TestOpenSSLSerializationWithOpenSSL(object):
def test_pem_password_cb_buffer_too_small(self):
ffi_cb, userdata = backend._pem_password_cb(b"aa")