#NEWLINE# def testImage( self ) : #NEWLINE# #INDENT# r = GafferImage . ImageReader ( ) #NEWLINE# r [ 'fileName' ] . setValue ( di . checkerFile ) #NEWLINE# d = GafferImage . DeleteChannels ( ) #NEWLINE# d [ 'in' ] . setInput ( r [ 'out' ] ) #NEWLINE# d [ 'mode' ] . setValue ( d . Mode . Keep ) #NEWLINE# d [ 'channels' ] . setValue ( IECore . StringVectorData ( [ 'R' ] ) ) #NEWLINE# ri = r [ 'out' ] . image ( ) #NEWLINE# di = d [ 'out' ] . image ( ) #NEWLINE# self . assertEqual ( set ( ri . keys ( ) ) , set ( [ 'R' , 'G' , 'B' , 'A' ] ) ) #NEWLINE# self . assertEqual ( di . keys ( ) , [ 'R' ] ) #NEWLINE# self . assertEqual ( di [ 'R' ] . data , ri [ 'R' ] . data )