#NEWLINE# def testRepeatability( self ) : #NEWLINE# #INDENT# s1 = self . compileShader ( ( os . path . dirname ( __file__ ) + '/shaders/outputTypes.osl' ) ) #NEWLINE# s2 = self . compileShader ( ( os . path . dirname ( __file__ ) + '/shaders/types.osl' ) ) #NEWLINE# sn1 = GafferOSL . OSLShader ( ) #NEWLINE# sn1 . loadShader ( s1 ) #NEWLINE# sn2 = GafferOSL . OSLShader ( ) #NEWLINE# sn2 . loadShader ( s2 ) #NEWLINE# sn2 [ 'parameters' ] [ 'i' ] . setInput ( sn1 [ 'out' ] [ 'i' ] ) #NEWLINE# self . assertEqual ( sn2 . stateHash ( ) , sn2 . stateHash ( ) ) #NEWLINE# self . assertEqual ( sn2 . state ( ) , sn2 . state ( ) )