Skip to content

Commit 1f86ccc

Browse files
committed
Add __delitem__, and dict length checking to tests for keys
1 parent 6ff265e commit 1f86ccc

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

bpython/test/test_keys.py

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,6 @@
33
import bpython.keys as keys
44

55
class TestKeys(unittest.TestCase):
6-
def test_keymap_map(self):
7-
"""Verify KeyMap.map being a dictionary with the correct length."""
8-
self.assertEqual(len(keys.key_dispatch.map), 43)
9-
10-
def test_keymap_setitem(self):
11-
"""Verify keys.KeyMap correctly setting items."""
12-
keys.key_dispatch['simon'] = 'awesome';
13-
self.assertEqual(keys.key_dispatch['simon'], 'awesome')
14-
15-
def test_keymap_delitem(self):
16-
"""Verify keys.KeyMap correctly removing items."""
17-
keys.key_dispatch['simon'] = 'awesome'
18-
del keys.key_dispatch['simon']
19-
if 'simon' in keys.key_dispatch.map:
20-
raise Exception('Key still exists in dictionary')
21-
226
def test_keymap_getitem(self):
237
"""Verify keys.KeyMap correctly looking up items."""
248
self.assertEqual(keys.key_dispatch['C-['], (chr(27), '^['))

0 commit comments

Comments
 (0)