(self)
| 355 | self.assertEqual(sorted(builtin_constructor_cache), ['MD5', 'md5']) |
| 356 | |
| 357 | def test_hexdigest(self): |
| 358 | for cons in self.hash_constructors: |
| 359 | h = cons(usedforsecurity=False) |
| 360 | if h.name in self.shakes: |
| 361 | self.assertIsInstance(h.digest(16), bytes) |
| 362 | self.assertEqual(hexstr(h.digest(16)), h.hexdigest(16)) |
| 363 | else: |
| 364 | self.assertIsInstance(h.digest(), bytes) |
| 365 | self.assertEqual(hexstr(h.digest()), h.hexdigest()) |
| 366 | |
| 367 | def test_digest_length_overflow(self): |
| 368 | # See issue #34922 |
nothing calls this directly
no test coverage detected