MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_update

Method test_update

Lib/test/test_hmac.py:1212–1215  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1210 self.assertEqual(h1.hexdigest(), h2.hexdigest())
1211
1212 def test_update(self):
1213 key, msg = random.randbytes(16), random.randbytes(16)
1214 with self.subTest(key=key, msg=msg):
1215 self.check_update(key, [msg])
1216
1217 def test_update_large(self):
1218 gil_minsize = self.gil_minsize

Callers

nothing calls this directly

Calls 3

check_updateMethod · 0.95
subTestMethod · 0.80
randbytesMethod · 0.45

Tested by

no test coverage detected