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

Method test_sha512_checksum

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

Source from the content-addressed store, hash-verified

82 )
83
84 def test_sha512_checksum(self):
85 test_file = self.get_test_loc("hash/dir1/a.png")
86 assert (
87 "5be9e01cd20ff288fd3c3fc46be5c2747eaa2c526197125330947a95cdb418222176b182a4680f0e435ba8f114363c45a67b30eed9a9222407e63ccbde46d3b4"
88 == sha512(test_file)
89 )
90
91 def test_checksum_sha1(self):
92 test_file = self.get_test_loc("hash/dir1/a.txt")

Callers

nothing calls this directly

Calls 2

sha512Function · 0.90
get_test_locMethod · 0.80

Tested by

no test coverage detected