Verify keys.KeyMap correctly removing items.
(self)
| 15 | self.assertEqual(keys.cli_key_dispatch["simon"], "awesome") |
| 16 | |
| 17 | def test_keymap_delitem(self): |
| 18 | """Verify keys.KeyMap correctly removing items.""" |
| 19 | keys.cli_key_dispatch["simon"] = "awesome" |
| 20 | del keys.cli_key_dispatch["simon"] |
| 21 | if "simon" in keys.cli_key_dispatch.map: |
| 22 | raise Exception("Key still exists in dictionary") |
| 23 | |
| 24 | def test_keymap_getitem(self): |
| 25 | """Verify keys.KeyMap correctly looking up items.""" |
nothing calls this directly
no outgoing calls
no test coverage detected