diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2015-12-24 13:06:12 -0600 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2015-12-24 13:06:12 -0600 |
commit | 07b7e7f6afd654970be0821c7e9f03ade4c621be (patch) | |
tree | 471b0c035a0e1ab05788df33d3315e732693e888 /tests | |
parent | 1e63b8470ceb4abdada68b8fce03365fbcd37a2a (diff) | |
download | cryptography-07b7e7f6afd654970be0821c7e9f03ade4c621be.tar.gz cryptography-07b7e7f6afd654970be0821c7e9f03ade4c621be.tar.bz2 cryptography-07b7e7f6afd654970be0821c7e9f03ade4c621be.zip |
add create_x509_crl interface
Diffstat (limited to 'tests')
-rw-r--r-- | tests/hazmat/backends/test_multibackend.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/hazmat/backends/test_multibackend.py b/tests/hazmat/backends/test_multibackend.py index 81a64ce0..e9edf5fb 100644 --- a/tests/hazmat/backends/test_multibackend.py +++ b/tests/hazmat/backends/test_multibackend.py @@ -218,6 +218,9 @@ class DummyX509Backend(object): def create_x509_certificate(self, builder, private_key, algorithm): pass + def create_x509_crl(self, builder, private_key, algorithm): + pass + class TestMultiBackend(object): def test_ciphers(self): @@ -514,6 +517,7 @@ class TestMultiBackend(object): backend.load_der_x509_csr(b"reqdata") 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 = MultiBackend([]) with raises_unsupported_algorithm(_Reasons.UNSUPPORTED_X509): @@ -534,3 +538,7 @@ class TestMultiBackend(object): backend.create_x509_certificate( object(), b"privatekey", hashes.SHA1() ) + with raises_unsupported_algorithm(_Reasons.UNSUPPORTED_X509): + backend.create_x509_crl( + object(), b"privatekey", hashes.SHA1() + ) |