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

Method test_update_exceptions

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

Source from the content-addressed store, hash-verified

1222 self.check_update(key, [top, bot])
1223
1224 def test_update_exceptions(self):
1225 h = self.HMAC(b"key")
1226 for msg in ['invalid msg', 123, (), []]:
1227 with self.subTest(msg=msg):
1228 self.assertRaises(TypeError, h.update, msg)
1229
1230
1231@requires_builtin_sha2()

Callers

nothing calls this directly

Calls 3

HMACMethod · 0.95
subTestMethod · 0.80
assertRaisesMethod · 0.45

Tested by

no test coverage detected