def test_autoselection(self): x = self.create_filestorage_hash("hash") x.fs.store([Record(["", ""])]) with open(x.tempfile + ".checksum", "r") as fp: data = fp.read() bitness = HashHook._bitness() self.assertIn(bitness, [32, 64]) self.assertTrue(data.startswith("sha512" if bitness == 64 else "sha256")) x.tempdir.cleanup()