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

Method test_blake2b

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

Source from the content-addressed store, hash-verified

836 @unittest.expectedFailure # TODO: RUSTPYTHON; add to constructor const value
837 @requires_blake2
838 def test_blake2b(self):
839 self.check_blake2(hashlib.blake2b, 16, 16, 64, 64, (1<<64)-1)
840 b2b_md_len = [20, 32, 48, 64]
841 b2b_in_len = [0, 3, 128, 129, 255, 1024]
842 self.assertEqual(
843 self.blake2_rfc7693(hashlib.blake2b, b2b_md_len, b2b_in_len),
844 "c23a7800d98123bd10f506c61e29da5603d763b8bbad2e737f5e765a7bccd475")
845
846 @requires_blake2
847 def test_case_blake2b_0(self):

Callers

nothing calls this directly

Calls 3

check_blake2Method · 0.95
blake2_rfc7693Method · 0.95
assertEqualMethod · 0.45

Tested by

no test coverage detected