MCPcopy Index your code
hub / github.com/python/cpython / test_hash_array

Method test_hash_array

Lib/test/test_hashlib.py:218–225  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

216 return get_fips_mode()
217
218 def test_hash_array(self):
219 a = array.array("b", range(10))
220 for cons in self.hash_constructors:
221 c = cons(a, usedforsecurity=False)
222 if c.name in self.shakes:
223 c.hexdigest(16)
224 else:
225 c.hexdigest()
226
227 def test_algorithms_guaranteed(self):
228 self.assertEqual(hashlib.algorithms_guaranteed,

Callers

nothing calls this directly

Calls 1

hexdigestMethod · 0.80

Tested by

no test coverage detected