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

Method assert_hmac_extra_cases

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

Source from the content-addressed store, hash-verified

855 """
856
857 def assert_hmac_extra_cases(
858 self, key, msg, hexdigest, digestmod, hashname, digest_size, block_size
859 ):
860 # assert one-shot HMAC at the same time
861 with self.subTest(key=key, msg=msg, hashname=hashname):
862 func = getattr(self.hmac, f'compute_{hashname}')
863 self.assertTrue(callable(func))
864 self.check_hmac_hexdigest(key, msg, hexdigest, digest_size, func)
865
866
867class DigestModTestCaseMixin(CreatorMixin, DigestMixin):

Callers

nothing calls this directly

Calls 5

getattrFunction · 0.85
callableFunction · 0.85
subTestMethod · 0.80
assertTrueMethod · 0.80
check_hmac_hexdigestMethod · 0.80

Tested by

no test coverage detected