Verify keys.KeyMap correctly removing items.
(self)
| 46 | self.assertEqual(keys.urwid_key_dispatch["simon"], "awesome") |
| 47 | |
| 48 | def test_keymap_delitem(self): |
| 49 | """Verify keys.KeyMap correctly removing items.""" |
| 50 | keys.urwid_key_dispatch["simon"] = "awesome" |
| 51 | del keys.urwid_key_dispatch["simon"] |
| 52 | if "simon" in keys.urwid_key_dispatch.map: |
| 53 | raise Exception("Key still exists in dictionary") |
| 54 | |
| 55 | def test_keymap_getitem(self): |
| 56 | """Verify keys.KeyMap correctly looking up items.""" |
nothing calls this directly
no outgoing calls
no test coverage detected