aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_utils.py
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2014-10-24 07:49:33 -0700
committerAlex Gaynor <alex.gaynor@gmail.com>2014-10-24 07:49:33 -0700
commitf484d1ef03bc548dde300a59c91474d82169b1be (patch)
treef3d79d1c6a22db5b90a5810ffe1a432be9c912df /tests/test_utils.py
parent971b98d40ed1cb6b6eecba7a83c0ff4a1ef89c5f (diff)
parent2f2346344ae5561bc9b106cbb452efeebe3cdc45 (diff)
downloadcryptography-f484d1ef03bc548dde300a59c91474d82169b1be.tar.gz
cryptography-f484d1ef03bc548dde300a59c91474d82169b1be.tar.bz2
cryptography-f484d1ef03bc548dde300a59c91474d82169b1be.zip
Merge branch 'master' into verify-interfaces
Conflicts: cryptography/hazmat/primitives/hmac.py
Diffstat (limited to 'tests/test_utils.py')
-rw-r--r--tests/test_utils.py25
1 files changed, 6 insertions, 19 deletions
diff --git a/tests/test_utils.py b/tests/test_utils.py
index da3b1a2a..6c8d088b 100644
--- a/tests/test_utils.py
+++ b/tests/test_utils.py
@@ -27,12 +27,12 @@ from cryptography.exceptions import UnsupportedAlgorithm, _Reasons
import cryptography_vectors
from .utils import (
- check_backend_support, check_for_iface, der_encode_dsa_signature,
- load_cryptrec_vectors, load_fips_dsa_key_pair_vectors,
- load_fips_dsa_sig_vectors, load_fips_ecdsa_key_pair_vectors,
- load_fips_ecdsa_signing_vectors, load_hash_vectors, load_kasvs_dh_vectors,
- load_nist_vectors, load_pkcs1_vectors, load_rsa_nist_vectors,
- load_vectors_from_file, raises_unsupported_algorithm, select_backends
+ check_backend_support, der_encode_dsa_signature, load_cryptrec_vectors,
+ load_fips_dsa_key_pair_vectors, load_fips_dsa_sig_vectors,
+ load_fips_ecdsa_key_pair_vectors, load_fips_ecdsa_signing_vectors,
+ load_hash_vectors, load_kasvs_dh_vectors, load_nist_vectors,
+ load_pkcs1_vectors, load_rsa_nist_vectors, load_vectors_from_file,
+ raises_unsupported_algorithm, select_backends
)
@@ -82,19 +82,6 @@ def test_select_two_backends():
assert selected_backends == [b1, b2]
-def test_check_for_iface():
- item = pretend.stub(keywords=["fake_name"], funcargs={"backend": True})
- with pytest.raises(pytest.skip.Exception) as exc_info:
- check_for_iface("fake_name", FakeInterface, item)
- assert exc_info.value.args[0] == "True backend does not support fake_name"
-
- item = pretend.stub(
- keywords=["fake_name"],
- funcargs={"backend": FakeInterface()}
- )
- check_for_iface("fake_name", FakeInterface, item)
-
-
def test_check_backend_support_skip():
supported = pretend.stub(
kwargs={"only_if": lambda backend: False, "skip_message": "Nope"}