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

Method test_empty_keymap

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

Source from the content-addressed store, hash-verified

76
77class TestCompileKeymap(unittest.TestCase):
78 def test_empty_keymap(self):
79 keymap = {}
80 result = compile_keymap(keymap)
81 self.assertEqual(result, {})
82
83 def test_single_keymap(self):
84 keymap = {b"a": "action"}

Callers

nothing calls this directly

Calls 2

compile_keymapFunction · 0.90
assertEqualMethod · 0.45

Tested by

no test coverage detected