#NEWLINE# def test_before_only( self ) : #NEWLINE# #INDENT# previous = self . auto_expand . getprevword #NEWLINE# expand = self . auto_expand . expand_word_event #NEWLINE# equal = self . assertEqual #NEWLINE# self . text . insert ( 'insert' , 'ab ac bx ad ab a' ) #NEWLINE# equal ( self . auto_expand . getwords ( ) , [ 'ab' , 'ad' , 'ac' , 'a' ] ) #NEWLINE# expand ( 'event' ) #NEWLINE# equal ( previous ( ) , 'ab' ) #NEWLINE# expand ( 'event' ) #NEWLINE# equal ( previous ( ) , 'ad' ) #NEWLINE# expand ( 'event' ) #NEWLINE# equal ( previous ( ) , 'ac' ) #NEWLINE# expand ( 'event' ) #NEWLINE# equal ( previous ( ) , 'a' )