MCPcopy Create free account
hub / github.com/aboutcode-org/scancode-toolkit / test_sha1_checksum

Method test_sha1_checksum

tests/commoncode/test_hash.py:74–76  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

72 assert "4760fb467f1ebf3b0aeace4a3926f1a4" == md5(test_file)
73
74 def test_sha1_checksum(self):
75 test_file = self.get_test_loc("hash/dir1/a.png")
76 assert "34ac5465d48a9b04fc275f09bc2230660df8f4f7" == sha1(test_file)
77
78 def test_sha256_checksum(self):
79 test_file = self.get_test_loc("hash/dir1/a.png")

Callers

nothing calls this directly

Calls 2

sha1Function · 0.90
get_test_locMethod · 0.80

Tested by

no test coverage detected