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

Method test_nested_keymap

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

Source from the content-addressed store, hash-verified

86 self.assertEqual(result, {b"a": "action"})
87
88 def test_nested_keymap(self):
89 keymap = {b"a": {b"b": "action"}}
90 result = compile_keymap(keymap)
91 self.assertEqual(result, {b"a": {b"b": "action"}})
92
93 def test_empty_value(self):
94 keymap = {b"a": {b"": "action"}}

Callers

nothing calls this directly

Calls 2

compile_keymapFunction · 0.90
assertEqualMethod · 0.45

Tested by

no test coverage detected