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

Method check_internals

Lib/test/test_hmac.py:192–196  ·  view source on GitHub ↗

Check the constant attributes of a HMAC object.

(self, h, hashname, digest_size, block_size)

Source from the content-addressed store, hash-verified

190 self.check_hexdigest(h, hexdigest, digest_size)
191
192 def check_internals(self, h, hashname, digest_size, block_size):
193 """Check the constant attributes of a HMAC object."""
194 self.assertEqual(h.name, f"hmac-{hashname}")
195 self.assertEqual(h.digest_size, digest_size)
196 self.assertEqual(h.block_size, block_size)
197
198 def check_hexdigest(self, h, hexdigest, digest_size):
199 """Check the HMAC digest of 'h' and its size."""

Callers 1

check_objectMethod · 0.95

Calls 1

assertEqualMethod · 0.45

Tested by

no test coverage detected