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

Method test_repr

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

Source from the content-addressed store, hash-verified

1148 cls.block_size = 64
1149
1150 def test_repr(self):
1151 h = self.hmac_new(b"my secret key", digestmod=self.digestname)
1152 self.assertStartsWith(repr(h), "<hmac.HMAC object at")
1153
1154
1155@hashlib_helper.requires_openssl_hashdigest('sha256')

Callers

nothing calls this directly

Calls 3

reprFunction · 0.85
hmac_newMethod · 0.45
assertStartsWithMethod · 0.45

Tested by

no test coverage detected