aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hazmat/primitives/test_hmac.py
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2014-03-22 15:09:34 -0700
committerAlex Stapleton <alexs@prol.etari.at>2014-03-27 07:31:12 +0000
commit7a489dbd116edd4ca5a6104b74748f3a4f712d15 (patch)
tree03b1fc8cdcde0e7c1032495d7d3b947540b931ad /tests/hazmat/primitives/test_hmac.py
parent844c14a15884fb60871640576e30a61e6c4c2db1 (diff)
downloadcryptography-7a489dbd116edd4ca5a6104b74748f3a4f712d15.tar.gz
cryptography-7a489dbd116edd4ca5a6104b74748f3a4f712d15.tar.bz2
cryptography-7a489dbd116edd4ca5a6104b74748f3a4f712d15.zip
Fixed #809 -- switch back to always using UnsupportedAlgorithm
Diffstat (limited to 'tests/hazmat/primitives/test_hmac.py')
-rw-r--r--tests/hazmat/primitives/test_hmac.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/hazmat/primitives/test_hmac.py b/tests/hazmat/primitives/test_hmac.py
index 1065359a..cdf8909d 100644
--- a/tests/hazmat/primitives/test_hmac.py
+++ b/tests/hazmat/primitives/test_hmac.py
@@ -21,7 +21,7 @@ import six
from cryptography import utils
from cryptography.exceptions import (
- AlreadyFinalized, InvalidSignature, UnsupportedHash, UnsupportedInterface
+ AlreadyFinalized, InvalidSignature, UnsupportedAlgorithm
)
from cryptography.hazmat.backends.interfaces import HMACBackend
from cryptography.hazmat.primitives import hashes, hmac, interfaces
@@ -106,12 +106,12 @@ class TestHMAC(object):
h.verify(six.u(''))
def test_unsupported_hash(self, backend):
- with pytest.raises(UnsupportedHash):
+ with pytest.raises(UnsupportedAlgorithm):
hmac.HMAC(b"key", UnsupportedDummyHash(), backend)
def test_invalid_backend():
pretend_backend = object()
- with pytest.raises(UnsupportedInterface):
+ with pytest.raises(UnsupportedAlgorithm):
hmac.HMAC(b"key", hashes.SHA1(), pretend_backend)