#NEWLINE# def test_ascii_lut( self ) : #NEWLINE# #INDENT# ' Test ascii 1D / 2D export\n\n        ' #NEWLINE# colorspace = REC709 #NEWLINE# outlutfile = os . path . join ( self . tmp_dir , 'default_2D.lut' ) #NEWLINE# preset = ASCII_HELPER . get_default_preset ( ) #NEWLINE# ASCII_HELPER . write_2d_lut ( colorspace . decode_gradation , outlutfile , preset ) #NEWLINE# outlutfile = os . path . join ( self . tmp_dir , 'default_1D.lut' ) #NEWLINE# preset = ASCII_HELPER . get_default_preset ( ) #NEWLINE# ASCII_HELPER . write_1d_lut ( colorspace . decode_gradation , colorspace , preset ) #NEWLINE# preset [ OUT_BITDEPTH ] = 12 #NEWLINE# self . failUnlessRaises ( AsciiHelperException , ASCII_HELPER . write_1d_lut , colorspace . decode_gradation , outlutfile , preset )