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

Method check_internals

Lib/test/test_hmac.py:193–197  ·  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

191 self.check_hexdigest(h, hexdigest, digest_size)
192
193 def check_internals(self, h, hashname, digest_size, block_size):
194 """Check the constant attributes of a HMAC object."""
195 self.assertEqual(h.name, f"hmac-{hashname}")
196 self.assertEqual(h.digest_size, digest_size)
197 self.assertEqual(h.block_size, block_size)
198
199 def check_hexdigest(self, h, hexdigest, digest_size):
200 """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