MCPcopy Create free account
hub / github.com/pyca/cryptography / test_load_hash_vectors_bad_data

Function test_load_hash_vectors_bad_data

tests/test_utils.py:349–360  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

347
348
349def test_load_hash_vectors_bad_data():
350 vector_data = textwrap.dedent(
351 """
352 # https://tools.ietf.org/html/rfc1321
353
354 Len = 0
355 Msg = 00
356 UNKNOWN=Hello World
357 """
358 ).splitlines()
359 with pytest.raises(ValueError):
360 load_hash_vectors(vector_data)
361
362
363def test_load_vectors_from_file():

Callers

nothing calls this directly

Calls 1

load_hash_vectorsFunction · 0.85

Tested by

no test coverage detected