#NEWLINE# def testBracketOperators( self ) : #NEWLINE# #INDENT# w = GafferUI . MultiSelectionMenu ( ) #NEWLINE# w . append ( 'A' ) #NEWLINE# w . append ( 'B' ) #NEWLINE# w . append ( 'C' ) #NEWLINE# self . assertEqual ( w [ 1 ] , 'B' ) #NEWLINE# w [ 1 ] = 'D' #NEWLINE# self . assertEqual ( w [ 1 ] , 'D' ) #NEWLINE# self . assertEqual ( w . index ( 'D' ) , 1 )