insert document header

This commit is contained in:
2026-08-07 20:07:29 +05:30
parent 15d2f94d04
commit 5793b30ce8
11 changed files with 471 additions and 0 deletions
View File
+14
View File
@@ -0,0 +1,14 @@
import hashlib
import unittest
import hashtool.hash
class TestFilehashes(unittest.TestCase):
def test_sha256(self):
hexdigests = hashtool.hash.filehashes("data/image001.jpg", {"SHA256": hashlib.sha256()})
self.assertEqual(hexdigests, {"SHA256": "75669a50892ea4e8e4ba2565915a7d48af9d98393ea463fd9cd71a6d16f258d2"})
if __name__ == "__main__":
unittest.main()