We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42ee813 commit b8116a1Copy full SHA for b8116a1
hashes/sha256.py
@@ -16,6 +16,8 @@
16
"""
17
18
import argparse
19
+import doctest
20
+import hashlib
21
import struct
22
import unittest
23
@@ -200,7 +202,7 @@ class SHA256HashTest(unittest.TestCase):
200
202
201
203
204
def test_match_hashes(self) -> None:
- import hashlib
205
+
206
207
msg = bytes("Test String", "utf-8")
208
assert SHA256(msg).hash == hashlib.sha256(msg).hexdigest()
@@ -214,7 +216,7 @@ def main() -> None:
214
216
215
217
# unittest.main()
218
- import doctest
219
220
221
doctest.testmod()
222
0 commit comments