aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2014-03-17 17:40:06 -0400
committerPaul Kehrer <paul.l.kehrer@gmail.com>2014-03-17 17:40:06 -0400
commitc480f6e23fcc162057fb892c676ea61b691fce16 (patch)
tree25ca3fdd24ef46f5c766ed04298dc79619ee0eac /tests
parent92e8ae835d543403279a416e16ae17f222de5d74 (diff)
downloadcryptography-c480f6e23fcc162057fb892c676ea61b691fce16.tar.gz
cryptography-c480f6e23fcc162057fb892c676ea61b691fce16.tar.bz2
cryptography-c480f6e23fcc162057fb892c676ea61b691fce16.zip
change exception and improve some language
Diffstat (limited to 'tests')
-rw-r--r--tests/hazmat/primitives/test_rsa.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/hazmat/primitives/test_rsa.py b/tests/hazmat/primitives/test_rsa.py
index a09d6d66..955e69c9 100644
--- a/tests/hazmat/primitives/test_rsa.py
+++ b/tests/hazmat/primitives/test_rsa.py
@@ -21,7 +21,9 @@ import os
import pytest
from cryptography import exceptions, utils
-from cryptography.exceptions import UnsupportedInterface
+from cryptography.exceptions import (
+ UnsupportedAlgorithm, UnsupportedInterface
+)
from cryptography.hazmat.primitives import hashes, interfaces
from cryptography.hazmat.primitives.asymmetric import rsa, padding
@@ -713,7 +715,7 @@ class TestRSAVerification(object):
backend=backend
)
public_key = private_key.public_key()
- with pytest.raises(TypeError):
+ with pytest.raises(UnsupportedAlgorithm):
public_key.verifier(b"sig", padding.PSS(mgf=DummyMGF()),
hashes.SHA1(), backend)