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

Method test_keymap_getitem

bpython/test/test_keys.py:55–59  ·  view source on GitHub ↗

Verify keys.KeyMap correctly looking up items.

(self)

Source from the content-addressed store, hash-verified

53 raise Exception("Key still exists in dictionary")
54
55 def test_keymap_getitem(self):
56 """Verify keys.KeyMap correctly looking up items."""
57 self.assertEqual(keys.urwid_key_dispatch["F11"], "f11")
58 self.assertEqual(keys.urwid_key_dispatch["C-a"], "ctrl a")
59 self.assertEqual(keys.urwid_key_dispatch["M-a"], "meta a")
60
61 def test_keymap_keyerror(self):
62 """Verify keys.KeyMap raising KeyError when getting undefined key"""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected