MCPcopy Create free account
hub / github.com/python/cpython / assert_digest_equal

Method assert_digest_equal

Lib/test/test_hmac.py:1327–1331  ·  view source on GitHub ↗
(self, a, b)

Source from the content-addressed store, hash-verified

1325 raise NotImplementedError
1326
1327 def assert_digest_equal(self, a, b):
1328 with self.subTest(a=a, b=b):
1329 self.assertTrue(self.compare_digest(a, b))
1330 with self.subTest(a=b, b=a):
1331 self.assertTrue(self.compare_digest(b, a))
1332
1333 def assert_digest_not_equal(self, a, b):
1334 with self.subTest(a=a, b=b):

Callers 6

test_bytesMethod · 0.95
test_bytearrayMethod · 0.95
test_mixed_typesMethod · 0.95
test_stringMethod · 0.95
test_string_subclassMethod · 0.95
test_bytes_subclassMethod · 0.95

Calls 3

compare_digestMethod · 0.95
assertTrueMethod · 0.80
subTestMethod · 0.45

Tested by

no test coverage detected