Test class for the SHA1Hash class. Inherits the TestCase class from unittest
| 113 | |
| 114 | |
| 115 | class SHA1HashTest(unittest.TestCase): |
| 116 | """ |
| 117 | Test class for the SHA1Hash class. Inherits the TestCase class from unittest |
| 118 | """ |
| 119 | def testMatchHashes(self): |
| 120 | msg = bytes('Test String', 'utf-8') |
| 121 | self.assertEqual(SHA1Hash(msg).final_hash(), hashlib.sha1(msg).hexdigest()) |
| 122 | |
| 123 | |
| 124 | def main(): |
nothing calls this directly
no outgoing calls
no test coverage detected