MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_algorithms_available

Method test_algorithms_available

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

Source from the content-addressed store, hash-verified

215 if _algo.islower()))
216
217 def test_algorithms_available(self):
218 self.assertTrue(set(hashlib.algorithms_guaranteed).
219 issubset(hashlib.algorithms_available))
220 # all available algorithms must be loadable, bpo-47101
221 self.assertNotIn("undefined", hashlib.algorithms_available)
222 for name in hashlib.algorithms_available:
223 digest = hashlib.new(name, usedforsecurity=False)
224
225 def test_usedforsecurity_true(self):
226 hashlib.new("sha256", usedforsecurity=True)

Callers

nothing calls this directly

Calls 5

setFunction · 0.85
assertTrueMethod · 0.80
assertNotInMethod · 0.80
issubsetMethod · 0.45
newMethod · 0.45

Tested by

no test coverage detected