Beispiel #1
0
 def test_rehash(self, tmpdir):
     self.prep(tmpdir)
     h, length = wheel.rehash(self.test_file)
     assert length == str(self.test_file_len)
     assert h == self.test_file_hash_encoded
Beispiel #2
0
 def test_rehash(self, tmpdir: Path) -> None:
     self.prep(tmpdir)
     h, length = wheel.rehash(os.fspath(self.test_file))
     assert length == str(self.test_file_len)
     assert h == self.test_file_hash_encoded