#NEWLINE# def testSliceSetItemAtEnd( self ) : #NEWLINE# #INDENT# c = GafferUI . ListContainer ( GafferUI . ListContainer . Orientation . Vertical ) #NEWLINE# c . append ( TestWidget ( 'a' ) ) #NEWLINE# c [ 1 : ] = [ TestWidget ( 'b' ) ] #NEWLINE# self . assertEqual ( self [ 0 ] . s , 'a' ) #NEWLINE# self . assertEqual ( c [ 1 ] . s , 'b' )