#NEWLINE# def testSetPlug( self ) : #NEWLINE# #INDENT# n = Gaffer . Node ( ) #NEWLINE# n [ 'user' ] [ 'p1' ] = Gaffer . CompoundDataPlug ( ) #NEWLINE# n [ 'user' ] [ 'p2' ] = Gaffer . CompoundDataPlug ( ) #NEWLINE# m1 = n [ 'user' ] [ 'p1' ] . addMember ( 'test' , 10 ) #NEWLINE# m2 = n [ 'user' ] [ 'p2' ] . addMember ( 'test' , 10 ) #NEWLINE# w = GafferUI . CompoundDataPlugValueWidget ( n [ 'user' ] [ 'p1' ] ) #NEWLINE# w1 = w . childPlugValueWidget ( m1 , lazy = False ) #NEWLINE# self . assertTrue ( w1 . getPlug ( ) . isSame ( self ) ) #NEWLINE# w . setPlug ( n [ 'user' ] [ 'p2' ] ) #NEWLINE# w2 = w . childPlugValueWidget ( m2 , lazy = False ) #NEWLINE# self . assertTrue ( w2 . getPlug ( ) . isSame ( m2 ) )