#NEWLINE# def setUp( self ) : #NEWLINE# #INDENT# test_dir = os . path . join ( os . path . dirname ( __file__ ) , 'test_files' ) #NEWLINE# self . tmp_dir = os . path . join ( tempfile . gettempdir ( ) , 'testCoPipe' ) #NEWLINE# if ( not os . path . exists ( self . tmp_dir ) ) : #NEWLINE# #INDENT# os . mkdir ( self . tmp_dir ) #NEWLINE# #UNINDENT# lut1d = os . path . join ( test_dir , 'CineonToLin_1D.csp' ) #NEWLINE# lut3d = os . path . join ( self , 'saturation.3dl' ) #NEWLINE# self . processor_1d = create_ocio_processor ( lut1d , interpolation = INTERP_LINEAR ) #NEWLINE# self . processor_3d = create_ocio_processor ( lut3d , interpolation = INTERP_TETRAHEDRAL ) #NEWLINE# self . helpers_1d_to_test = [ ( CUBE_HELPER , '.cube' ) , [ SPI_HELPER , '.spi1d' ] , ( CSP_HELPER , '.csp' ) ] #NEWLINE# self . helpers_3d_to_test = [ ( CUBE_HELPER , '.cube' , True ) , [ SPI_HELPER , '.spi3d' , True ] , ( CSP_HELPER , '.csp' , True ) , ( THREEDL_HELPER , '.3dl' , True ) , ( CLCC_HELPER , '.cc' , False ) , ( JSON_HELPER , '.json' , False ) ]