Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/geekcomputers/Python
/ testMatchHashes
Method
testMatchHashes
sha1.py:105–107 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
103
""
"
104
105
def
testMatchHashes(self):
106
msg = bytes(
"Test String"
,
"utf-8"
)
107
self.assertEqual(SHA1Hash(msg).final_hash(), hashlib.sha1(msg).hexdigest())
108
109
110
def
main():
Callers
nothing calls this directly
Calls
2
SHA1Hash
Class · 0.85
final_hash
Method · 0.80
Tested by
no test coverage detected