#NEWLINE# def testOutputPlugAffectsHash( self ) : #NEWLINE# #INDENT# globals = GafferOSL . OSLShader ( ) #NEWLINE# globals . loadShader ( 'Utility/Globals' ) #NEWLINE# buildColor = GafferOSL . OSLShader ( ) #NEWLINE# buildColor . loadShader ( 'Utility/BuildColor' ) #NEWLINE# buildColor [ 'parameters' ] [ 'r' ] . setInput ( globals [ 'out' ] [ 'globalU' ] ) #NEWLINE# h1 = buildColor . stateHash ( ) #NEWLINE# buildColor [ 'parameters' ] [ 'r' ] . setInput ( h1 [ 'out' ] [ 'globalV' ] ) #NEWLINE# h2 = buildColor . stateHash ( ) #NEWLINE# self . assertNotEqual ( h1 , h2 )