#NEWLINE# def testDirtyNotPropagatedDuringCompute( self ) : #NEWLINE# #INDENT# n1 = GafferTest . AddNode ( 'n1' ) #NEWLINE# n2 = GafferTest . AddNode ( 'n2' ) #NEWLINE# n1 [ 'op1' ] . setValue ( 2 ) #NEWLINE# n1 [ 'op2' ] . setValue ( 3 ) #NEWLINE# n2 [ 'op1' ] . setInput ( n1 [ 'sum' ] ) #NEWLINE# dirtyCapturer = GafferTest . CapturingSlot ( n2 . plugDirtiedSignal ( ) ) #NEWLINE# self . assertEqual ( n2 [ 'sum' ] . getValue ( ) , 5 ) #NEWLINE# self . assertEqual ( len ( dirtyCapturer ) , 0 )