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

Method test_hmac_delegated_properties

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

Source from the content-addressed store, hash-verified

1471
1472 @hashlib_helper.requires_hashdigest('sha256')
1473 def test_hmac_delegated_properties(self):
1474 h = hmac.HMAC(b'key', b'msg', digestmod="sha256")
1475 self.assertEqual(h.name, "hmac-sha256")
1476 self.assertEqual(h.digest_size, 32)
1477 self.assertEqual(h.block_size, 64)
1478
1479 @hashlib_helper.requires_hashdigest('sha256')
1480 def test_legacy_block_size_warnings(self):

Callers

nothing calls this directly

Calls 2

HMACMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected