File tree Expand file tree Collapse file tree 1 file changed +0
-16
lines changed
Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Original file line number Diff line number Diff line change 33import bpython .keys as keys
44
55class 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 ), '^[' ))
You can’t perform that action at this time.
0 commit comments