(self)
| 215 | if _algo.islower())) |
| 216 | |
| 217 | def test_algorithms_available(self): |
| 218 | self.assertTrue(set(hashlib.algorithms_guaranteed). |
| 219 | issubset(hashlib.algorithms_available)) |
| 220 | # all available algorithms must be loadable, bpo-47101 |
| 221 | self.assertNotIn("undefined", hashlib.algorithms_available) |
| 222 | for name in hashlib.algorithms_available: |
| 223 | digest = hashlib.new(name, usedforsecurity=False) |
| 224 | |
| 225 | def test_usedforsecurity_true(self): |
| 226 | hashlib.new("sha256", usedforsecurity=True) |
nothing calls this directly
no test coverage detected