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

Method test_digest

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

Source from the content-addressed store, hash-verified

916
917 @hashlib_helper.requires_hashdigest("sha256")
918 def test_digest(self):
919 digest = self.hmac_digest(self.key, self.msg, "sha256")
920 self.assertEqual(digest, binascii.unhexlify(self.res))
921
922
923class PyConstructorBaseMixin(PyModuleMixin,

Callers

nothing calls this directly

Calls 2

hmac_digestMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected