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

Method test_digest

Lib/test/test_hmac.py:959–961  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

957
958 @hashlib_helper.requires_hashdigest("sha256")
959 def test_digest(self):
960 digest = self.hmac_digest(self.key, self.msg, "sha256")
961 self.assertEqual(digest, binascii.unhexlify(self.res))
962
963
964class PyConstructorBaseMixin(PyModuleMixin,

Callers 1

test_digestMethod · 0.45

Calls 2

hmac_digestMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected