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

Method test_repr

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

Source from the content-addressed store, hash-verified

1119 cls.block_size = 64
1120
1121 def test_repr(self):
1122 h = self.hmac_new(b"my secret key", digestmod=self.digestname)
1123 self.assertStartsWith(repr(h), f"<{self.digestname} HMAC object @")
1124
1125
1126class BuiltinSanityTestCase(ThroughBuiltinAPIMixin, SanityTestCaseMixin,

Callers

nothing calls this directly

Calls 2

assertStartsWithMethod · 0.80
hmac_newMethod · 0.45

Tested by

no test coverage detected