(self)
| 27 | test_data_dir = os.path.join(os.path.dirname(__file__), "data") |
| 28 | |
| 29 | def test_get_hasher(self): |
| 30 | h = get_hasher(160) |
| 31 | assert h(b"a").b64digest() == "hvfkN_qlp_zhXR3cuerq6jd2Z7g=" |
| 32 | assert h(b"aa").b64digest() == "4MkDWJjdUvxlxBRUzsnE0mEb-zc=" |
| 33 | assert h(b"aaa").b64digest() == "fiQN50-x7Qj6CNOAY_amqRRiqBU=" |
| 34 | |
| 35 | def test_short_hashes(self): |
| 36 | h = get_hasher(32) |
nothing calls this directly
no test coverage detected