#NEWLINE# def testDeleteChannels( self ) : #NEWLINE# #INDENT# r = GafferImage . ImageReader ( ) #NEWLINE# r [ 'fileName' ] . setValue ( r . checkerFile ) #NEWLINE# c = GafferImage . DeleteChannels ( ) #NEWLINE# c [ 'in' ] . setInput ( r [ 'out' ] ) #NEWLINE# c [ 'mode' ] . setValue ( GafferImage . DeleteChannels . Mode . Delete ) #NEWLINE# c [ 'channels' ] . setValue ( IECore . StringVectorData ( [ 'G' , 'A' ] ) ) #NEWLINE# self . assertEqual ( c [ 'out' ] [ 'channelNames' ] . getValue ( ) , IECore . StringVectorData ( [ 'R' , 'B' ] ) )