(self)
| 381 | digest(length) |
| 382 | |
| 383 | def test_name_attribute(self): |
| 384 | for cons in self.hash_constructors: |
| 385 | h = cons(usedforsecurity=False) |
| 386 | self.assertIsInstance(h.name, str) |
| 387 | if h.name in self.supported_hash_names: |
| 388 | self.assertIn(h.name, self.supported_hash_names) |
| 389 | else: |
| 390 | self.assertNotIn(h.name, self.supported_hash_names) |
| 391 | self.assertEqual( |
| 392 | h.name, |
| 393 | hashlib.new(h.name, usedforsecurity=False).name |
| 394 | ) |
| 395 | |
| 396 | def test_large_update(self): |
| 397 | aas = b'a' * 128 |
nothing calls this directly
no test coverage detected