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

Method test_empty_value

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

Source from the content-addressed store, hash-verified

91 self.assertEqual(result, {b"a": {b"b": "action"}})
92
93 def test_empty_value(self):
94 keymap = {b"a": {b"": "action"}}
95 result = compile_keymap(keymap)
96 self.assertEqual(result, {b"a": {b"": "action"}})
97
98 def test_multiple_empty_values(self):
99 keymap = {b"a": {b"": "action1", b"b": "action2"}}

Callers

nothing calls this directly

Calls 2

compile_keymapFunction · 0.90
assertEqualMethod · 0.45

Tested by

no test coverage detected