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

Method assert_hmac_hexdigest_by_name

Lib/test/test_hmac.py:339–348  ·  view source on GitHub ↗

Check a HMAC digest computed by hmac_digest_by_name().

(
        self, key, msg, hexdigest, hashname, digest_size
    )

Source from the content-addressed store, hash-verified

337 )
338
339 def assert_hmac_hexdigest_by_name(
340 self, key, msg, hexdigest, hashname, digest_size
341 ):
342 """Check a HMAC digest computed by hmac_digest_by_name()."""
343 self.assertIsInstance(hashname, str)
344 self.check_hmac_hexdigest(
345 key, msg, hexdigest, digest_size,
346 hmac_digest_func=self.hmac_digest_by_name,
347 hmac_digest_kwds={'hashname': hashname},
348 )
349
350 def check_hmac_hexdigest(
351 self, key, msg, hexdigest, digest_size,

Callers 1

assert_hmacMethod · 0.95

Calls 2

check_hmac_hexdigestMethod · 0.95
assertIsInstanceMethod · 0.80

Tested by

no test coverage detected