aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hazmat
diff options
context:
space:
mode:
Diffstat (limited to 'tests/hazmat')
-rw-r--r--tests/hazmat/backends/test_multibackend.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/hazmat/backends/test_multibackend.py b/tests/hazmat/backends/test_multibackend.py
index 319edf7d..7ffc4236 100644
--- a/tests/hazmat/backends/test_multibackend.py
+++ b/tests/hazmat/backends/test_multibackend.py
@@ -240,6 +240,9 @@ class DummyX509Backend(object):
def create_x509_revoked_certificate(self, builder):
pass
+ def x509_name_bytes(self, name):
+ pass
+
@utils.register_interface(ScryptBackend)
class DummyScryptBackend(object):
@@ -554,6 +557,7 @@ class TestMultiBackend(object):
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.x509_name_bytes(object())
backend = MultiBackend([DummyBackend()])
with raises_unsupported_algorithm(_Reasons.UNSUPPORTED_X509):
@@ -580,6 +584,8 @@ class TestMultiBackend(object):
)
with raises_unsupported_algorithm(_Reasons.UNSUPPORTED_X509):
backend.create_x509_revoked_certificate(object())
+ with raises_unsupported_algorithm(_Reasons.UNSUPPORTED_X509):
+ backend.x509_name_bytes(object())
def test_scrypt(self):
backend = MultiBackend([DummyScryptBackend()])