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

Method test_keymap_delitem

bpython/test/test_keys.py:17–22  ·  view source on GitHub ↗

Verify keys.KeyMap correctly removing items.

(self)

Source from the content-addressed store, hash-verified

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."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected