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

Method assert_hmac_extra_cases

Lib/test/test_hmac.py:385–390  ·  view source on GitHub ↗
(
        self, key, msg, hexdigest, digestmod, hashname, digest_size, block_size
    )

Source from the content-addressed store, hash-verified

383class PyAssertersMixin(PyModuleMixin, AssertersMixin):
384
385 def assert_hmac_extra_cases(
386 self, key, msg, hexdigest, digestmod, hashname, digest_size, block_size
387 ):
388 h = self.hmac.HMAC.__new__(self.hmac.HMAC)
389 h._init_old(key, msg, digestmod=digestmod)
390 self.check_object(h, hexdigest, hashname, digest_size, block_size)
391
392
393class OpenSSLAssertersMixin(ThroughOpenSSLAPIMixin, AssertersMixin):

Callers

nothing calls this directly

Calls 3

_init_oldMethod · 0.80
check_objectMethod · 0.80
__new__Method · 0.45

Tested by

no test coverage detected