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

Method test_keymap_delitem

bpython/test/test_keys.py:48–53  ·  view source on GitHub ↗

Verify keys.KeyMap correctly removing items.

(self)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected