#NEWLINE# def testOutputTypes( self ) : #NEWLINE# #INDENT# s = self . compileShader ( ( os . path . dirname ( __file__ ) + '/shaders/outputTypes.osl' ) ) #NEWLINE# n = GafferOSL . OSLShader ( ) #NEWLINE# n . loadShader ( s ) #NEWLINE# self . assertEqual ( n [ 'name' ] . getValue ( ) , self ) #NEWLINE# self . assertEqual ( n [ 'type' ] . getValue ( ) , 'osl:shader' ) #NEWLINE# self . assertEqual ( len ( n [ 'parameters' ] ) , 1 ) #NEWLINE# self . assertEqual ( n [ 'parameters' ] . keys ( ) , [ 'input' ] ) #NEWLINE# self . assertEqual ( n [ 'out' ] . typeId ( ) , Gaffer . Plug . staticTypeId ( ) ) #NEWLINE# self . assertEqual ( n [ 'out' ] . keys ( ) , [ 'i' , 'f' , 'c' , 's' ] )