MCPcopy 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
110def main():

Callers

nothing calls this directly

Calls 2

SHA1HashClass · 0.85
final_hashMethod · 0.80

Tested by

no test coverage detected