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

Method test_digest_with_module

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

Source from the content-addressed store, hash-verified

979
980 @requires_builtin_sha2()
981 def test_digest_with_module(self):
982 digest = self.hmac_digest(self.key, self.msg, sha2.sha256)
983 self.assertEqual(digest, binascii.unhexlify(self.res))
984
985
986class PyConstructorTestCase(ThroughObjectMixin, PyConstructorBaseMixin,

Callers

nothing calls this directly

Calls 2

hmac_digestMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected