(self)
| 404 | self.assertEqual(hexstr(h.digest()), h.hexdigest()) |
| 405 | |
| 406 | def test_shakes_zero_digest_length(self): |
| 407 | for constructor in self.shake_constructors: |
| 408 | with self.subTest(constructor=constructor): |
| 409 | h = constructor(b'abcdef', usedforsecurity=False) |
| 410 | self.assertEqual(h.digest(0), b'') |
| 411 | self.assertEqual(h.hexdigest(0), '') |
| 412 | |
| 413 | def test_shakes_invalid_digest_length(self): |
| 414 | # See https://github.com/python/cpython/issues/79103. |
nothing calls this directly
no test coverage detected