#NEWLINE# def test_tokenize4( self ) : #NEWLINE# #INDENT# tokens = keyinput . tokenize_keypresses ( 'press {ctrl+alt+delete} to quit' ) #NEWLINE# self . assertEqual ( '' . join ( tokens [ : 6 ] ) , 'press ' ) #NEWLINE# self . assertIsInstance ( tokens [ 6 ] , keyinput . KeySequence ) #NEWLINE# self . assertEqual ( tokens [ 6 ] . keys , [ 'ctrl' , 'alt' , 'delete' ] ) #NEWLINE# self . assertEqual ( '' . join ( self [ 7 : ] ) , ' to quit' )