MCPcopy Create free account
hub / github.com/bpython/bpython / test_keymap_getitem

Method test_keymap_getitem

bpython/test/test_keys.py:24–28  ·  view source on GitHub ↗

Verify keys.KeyMap correctly looking up items.

(self)

Source from the content-addressed store, hash-verified

22 raise Exception("Key still exists in dictionary")
23
24 def test_keymap_getitem(self):
25 """Verify keys.KeyMap correctly looking up items."""
26 self.assertEqual(keys.cli_key_dispatch["C-["], (chr(27), "^["))
27 self.assertEqual(keys.cli_key_dispatch["F11"], ("KEY_F(11)",))
28 self.assertEqual(keys.cli_key_dispatch["C-a"], ("\x01", "^A"))
29
30 def test_keymap_keyerror(self):
31 """Verify keys.KeyMap raising KeyError when getting undefined key"""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected