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

Method test_repr

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

Source from the content-addressed store, hash-verified

1102 cls.block_size = 64
1103
1104 def test_repr(self):
1105 h = self.hmac_new(b"my secret key", digestmod=self.digestname)
1106 self.assertStartsWith(repr(h), "<hmac.HMAC object at")
1107
1108
1109@hashlib_helper.requires_openssl_hashdigest('sha256')

Callers

nothing calls this directly

Calls 2

assertStartsWithMethod · 0.80
hmac_newMethod · 0.45

Tested by

no test coverage detected