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