diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2015-12-25 14:00:02 -0500 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2015-12-25 14:00:02 -0500 |
commit | ef5f9fc339a7137f5a9761f8c27a08c554c27b1c (patch) | |
tree | 95195d5a52f3ed575a2f7ac42f50187a08eae05a /tests/hazmat/backends/test_multibackend.py | |
parent | 58dc259214ff05243ec4e72c86cc2c7a76ca6e02 (diff) | |
parent | aa8b0f43db0f4708ecf12ba2a2034ba6165d5f76 (diff) | |
download | cryptography-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_multibackend.py')
-rw-r--r-- | tests/hazmat/backends/test_multibackend.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/hazmat/backends/test_multibackend.py b/tests/hazmat/backends/test_multibackend.py index e9edf5fb..74835716 100644 --- a/tests/hazmat/backends/test_multibackend.py +++ b/tests/hazmat/backends/test_multibackend.py @@ -221,6 +221,9 @@ class DummyX509Backend(object): def create_x509_crl(self, builder, private_key, algorithm): pass + def create_x509_revoked_certificate(self, builder): + pass + class TestMultiBackend(object): def test_ciphers(self): @@ -518,6 +521,7 @@ class TestMultiBackend(object): backend.create_x509_csr(object(), b"privatekey", hashes.SHA1()) backend.create_x509_certificate(object(), b"privatekey", hashes.SHA1()) backend.create_x509_crl(object(), b"privatekey", hashes.SHA1()) + backend.create_x509_revoked_certificate(object()) backend = MultiBackend([]) with raises_unsupported_algorithm(_Reasons.UNSUPPORTED_X509): @@ -542,3 +546,5 @@ class TestMultiBackend(object): backend.create_x509_crl( object(), b"privatekey", hashes.SHA1() ) + with raises_unsupported_algorithm(_Reasons.UNSUPPORTED_X509): + backend.create_x509_revoked_certificate(object()) |