#NEWLINE# def testSearchPaths( self ) : #NEWLINE# #INDENT# s = self . compileShader ( ( os . path . dirname ( __file__ ) + '/shaders/types.osl' ) ) #NEWLINE# os . environ [ 'OSL_SHADER_PATHS' ] = os . path . dirname ( s ) #NEWLINE# n = GafferOSL . OSLShader ( ) #NEWLINE# n . loadShader ( os . path . basename ( s ) ) #NEWLINE# self . assertEqual ( n [ 'parameters' ] . keys ( ) , [ 'i' , 'f' , 'c' , 's' ] )