MCPcopy Index your code
hub / github.com/python/cpython / test_single_keymap

Method test_single_keymap

Lib/test/test_pyrepl/test_keymap.py:83–86  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

81 self.assertEqual(result, {})
82
83 def test_single_keymap(self):
84 keymap = {b"a": "action"}
85 result = compile_keymap(keymap)
86 self.assertEqual(result, {b"a": "action"})
87
88 def test_nested_keymap(self):
89 keymap = {b"a": {b"b": "action"}}

Callers

nothing calls this directly

Calls 2

compile_keymapFunction · 0.90
assertEqualMethod · 0.45

Tested by

no test coverage detected