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

Method assert_hmac_extra_cases

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

Source from the content-addressed store, hash-verified

382class PyAssertersMixin(PyModuleMixin, AssertersMixin):
383
384 def assert_hmac_extra_cases(
385 self, key, msg, hexdigest, digestmod, hashname, digest_size, block_size
386 ):
387 h = self.hmac.HMAC.__new__(self.hmac.HMAC)
388 h._init_old(key, msg, digestmod=digestmod)
389 self.check_object(h, hexdigest, hashname, digest_size, block_size)
390
391
392class 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