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

Method test_keymap_setitem

bpython/test/test_keys.py:12–15  ·  view source on GitHub ↗

Verify keys.KeyMap correctly setting items.

(self)

Source from the content-addressed store, hash-verified

10 self.assertEqual(len(keys.cli_key_dispatch.map), 43)
11
12 def test_keymap_setitem(self):
13 """Verify keys.KeyMap correctly setting items."""
14 keys.cli_key_dispatch["simon"] = "awesome"
15 self.assertEqual(keys.cli_key_dispatch["simon"], "awesome")
16
17 def test_keymap_delitem(self):
18 """Verify keys.KeyMap correctly removing items."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected