Verify keys.KeyMap correctly looking up items.
(self)
| 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""" |
nothing calls this directly
no outgoing calls
no test coverage detected