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

Method test_repr

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

Source from the content-addressed store, hash-verified

1165 cls.block_size = 64
1166
1167 def test_repr(self):
1168 h = self.hmac_new(b"my secret key", digestmod=self.digestname)
1169 self.assertStartsWith(repr(h), f"<{self.digestname} HMAC object @")
1170
1171
1172class BuiltinSanityTestCase(ThroughBuiltinAPIMixin, SanityTestCaseMixin,

Callers

nothing calls this directly

Calls 3

reprFunction · 0.85
hmac_newMethod · 0.45
assertStartsWithMethod · 0.45

Tested by

no test coverage detected