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

Method test_digest_with_module

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

Source from the content-addressed store, hash-verified

938
939 @requires_builtin_sha2()
940 def test_digest_with_module(self):
941 digest = self.hmac_digest(self.key, self.msg, sha2.sha256)
942 self.assertEqual(digest, binascii.unhexlify(self.res))
943
944
945class PyConstructorTestCase(ThroughObjectMixin, PyConstructorBaseMixin,

Callers

nothing calls this directly

Calls 2

hmac_digestMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected