aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hazmat/primitives/utils.py
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2017-07-20 13:04:25 +0200
committerAlex Gaynor <alex.gaynor@gmail.com>2017-07-20 07:04:25 -0400
commit0d6aaf49c1890378ce7ecf741a3a40c859d3b9fb (patch)
tree2474a443821ba4b1fb7d9f7018aba278865b7669 /tests/hazmat/primitives/utils.py
parentd3c4ba3a790883be17ca0a4e7ae291d261771700 (diff)
downloadcryptography-0d6aaf49c1890378ce7ecf741a3a40c859d3b9fb.tar.gz
cryptography-0d6aaf49c1890378ce7ecf741a3a40c859d3b9fb.tar.bz2
cryptography-0d6aaf49c1890378ce7ecf741a3a40c859d3b9fb.zip
remove deprecated items (#3794)
* remove deprecated items whirlpool, ripemd160, unsupportedextension, and the old interfaces * flake8 and remove a test generator we no longe use * make it clear we warned you about these things
Diffstat (limited to 'tests/hazmat/primitives/utils.py')
-rw-r--r--tests/hazmat/primitives/utils.py12
1 files changed, 0 insertions, 12 deletions
diff --git a/tests/hazmat/primitives/utils.py b/tests/hazmat/primitives/utils.py
index b8200123..16a26819 100644
--- a/tests/hazmat/primitives/utils.py
+++ b/tests/hazmat/primitives/utils.py
@@ -189,18 +189,6 @@ def base_hash_test(backend, algorithm, digest_size, block_size):
assert copy.finalize() == m.finalize()
-def generate_long_string_hash_test(hash_factory, md):
- def test_long_string_hash(self, backend):
- long_string_hash_test(backend, hash_factory, md)
- return test_long_string_hash
-
-
-def long_string_hash_test(backend, algorithm, md):
- m = hashes.Hash(algorithm, backend=backend)
- m.update(b"a" * 1000000)
- assert m.finalize() == binascii.unhexlify(md.lower().encode("ascii"))
-
-
def generate_base_hmac_test(hash_cls):
def test_base_hmac(self, backend):
base_hmac_test(backend, hash_cls)