aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hazmat/backends
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2014-10-22 09:51:46 -0700
committerAlex Gaynor <alex.gaynor@gmail.com>2014-10-22 09:51:46 -0700
commit633caacfe7e86f9098bb8cb64cfc12a9fe5cc35c (patch)
tree007cfe0a59150d2681c153323b15d1f8d00ab4c2 /tests/hazmat/backends
parent67a4dd1a2227af1a3461c92edc5316ab9fe7a942 (diff)
parent60d8640bc3aa8eb48273e1df6de94607a38f8ec3 (diff)
downloadcryptography-633caacfe7e86f9098bb8cb64cfc12a9fe5cc35c.tar.gz
cryptography-633caacfe7e86f9098bb8cb64cfc12a9fe5cc35c.tar.bz2
cryptography-633caacfe7e86f9098bb8cb64cfc12a9fe5cc35c.zip
Merge branch 'master' into verify-interfaces
Conflicts: cryptography/utils.py
Diffstat (limited to 'tests/hazmat/backends')
-rw-r--r--tests/hazmat/backends/test_multibackend.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/hazmat/backends/test_multibackend.py b/tests/hazmat/backends/test_multibackend.py
index 93934ad6..c50b6cf6 100644
--- a/tests/hazmat/backends/test_multibackend.py
+++ b/tests/hazmat/backends/test_multibackend.py
@@ -131,6 +131,9 @@ class DummyDSABackend(object):
def load_dsa_public_numbers(self, numbers):
pass
+ def load_dsa_parameter_numbers(self, numbers):
+ pass
+
@utils.register_interface(CMACBackend)
class DummyCMACBackend(object):
@@ -330,6 +333,7 @@ class TestMultiBackend(object):
backend.dsa_parameters_supported(1, 2, 3)
backend.load_dsa_private_numbers("numbers")
backend.load_dsa_public_numbers("numbers")
+ backend.load_dsa_parameter_numbers("numbers")
backend = MultiBackend([])
with raises_unsupported_algorithm(
@@ -367,6 +371,11 @@ class TestMultiBackend(object):
):
backend.load_dsa_public_numbers("numbers")
+ with raises_unsupported_algorithm(
+ _Reasons.UNSUPPORTED_PUBLIC_KEY_ALGORITHM
+ ):
+ backend.load_dsa_parameter_numbers("numbers")
+
def test_cmac(self):
backend = MultiBackend([
DummyCMACBackend([algorithms.AES])