MCPcopy Create free account
hub / github.com/Kaggle/docker-python / test_digest

Method test_digest

tests/test_pycrypto.py:6–10  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

4
5class TestPycrypto(unittest.TestCase):
6 def test_digest(self):
7 hash = SHA256.new()
8 hash.update('message'.encode('utf-8'))
9 h = hash.digest()
10 self.assertEqual(h, b'\xabS\n\x13\xe4Y\x14\x98+y\xf9\xb7\xe3\xfb\xa9\x94\xcf\xd1\xf3\xfb"\xf7\x1c\xea\x1a\xfb\xf0+F\x0cm\x1d')

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected