#NEWLINE# def testAppendRemoveInsert( self ) : #NEWLINE# #INDENT# w = GafferUI . MultiSelectionMenu ( ) #NEWLINE# w . append ( 'A' ) #NEWLINE# w . append ( 'B' ) #NEWLINE# w . append ( 'C' ) #NEWLINE# self . assertEqual ( w [ : ] , [ 'A' , 'B' , 'C' ] ) #NEWLINE# w . insert ( 1 , 'C' ) #NEWLINE# self . assertEqual ( w [ : ] , [ 'A' , 'B' , 'C' ] ) #NEWLINE# w . remove ( 'B' ) #NEWLINE# self . assertFalse ( ( 'B' in self ) ) #NEWLINE# self . assertEqual ( w [ : ] , [ 'A' , 'C' ] ) #NEWLINE# w . insert ( 0 , 'E' ) #NEWLINE# self . assertEqual ( w [ : ] , [ 'E' , 'A' , 'C' ] )