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

Method test_keymap_setitem

bpython/test/test_keys.py:43–46  ·  view source on GitHub ↗

Verify keys.KeyMap correctly setting items.

(self)

Source from the content-addressed store, hash-verified

41 self.assertEqual(len(keys.urwid_key_dispatch.map), 64)
42
43 def test_keymap_setitem(self):
44 """Verify keys.KeyMap correctly setting items."""
45 keys.urwid_key_dispatch["simon"] = "awesome"
46 self.assertEqual(keys.urwid_key_dispatch["simon"], "awesome")
47
48 def test_keymap_delitem(self):
49 """Verify keys.KeyMap correctly removing items."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected