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

Method test_sha256_checksum

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

Source from the content-addressed store, hash-verified

76 assert "34ac5465d48a9b04fc275f09bc2230660df8f4f7" == sha1(test_file)
77
78 def test_sha256_checksum(self):
79 test_file = self.get_test_loc("hash/dir1/a.png")
80 assert "1b598db6fee8f1ec7bb919c0adf68956f3d20af8c9934a9cf2db52e1347efd35" == sha256(
81 test_file
82 )
83
84 def test_sha512_checksum(self):
85 test_file = self.get_test_loc("hash/dir1/a.png")

Callers

nothing calls this directly

Calls 2

sha256Function · 0.90
get_test_locMethod · 0.80

Tested by

no test coverage detected