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

Method assert_digest_not_equal

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

Source from the content-addressed store, hash-verified

1377 self.assertTrue(self.compare_digest(b, a))
1378
1379 def assert_digest_not_equal(self, a, b):
1380 with self.subTest(a=a, b=b):
1381 self.assertFalse(self.compare_digest(a, b))
1382 with self.subTest(a=b, b=a):
1383 self.assertFalse(self.compare_digest(b, a))
1384
1385 def test_exceptions(self):
1386 for a, b in [

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
subTestMethod · 0.80
assertFalseMethod · 0.80

Tested by

no test coverage detected