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

Method test_multiple_keymaps

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

Source from the content-addressed store, hash-verified

101 self.assertEqual(result, {b"a": {b"": "action1", b"b": "action2"}})
102
103 def test_multiple_keymaps(self):
104 keymap = {b"a": {b"b": "action1", b"c": "action2"}}
105 result = compile_keymap(keymap)
106 self.assertEqual(result, {b"a": {b"b": "action1", b"c": "action2"}})
107
108 def test_nested_multiple_keymaps(self):
109 keymap = {b"a": {b"b": {b"c": "action"}}}

Callers

nothing calls this directly

Calls 2

compile_keymapFunction · 0.90
assertEqualMethod · 0.45

Tested by

no test coverage detected