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

Method test_repr

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

Source from the content-addressed store, hash-verified

1135 cls.block_size = 64
1136
1137 def test_repr(self):
1138 h = self.hmac_new(b"my secret key", digestmod=self.digestname)
1139 self.assertStartsWith(repr(h), f"<{self.digestname} HMAC object @")
1140
1141
1142class UpdateTestCaseMixin:

Callers

nothing calls this directly

Calls 2

assertStartsWithMethod · 0.80
hmac_newMethod · 0.45

Tested by

no test coverage detected