#NEWLINE# def testChannelDataHash( self ) : #NEWLINE# #INDENT# r = GafferImage . ImageReader ( ) #NEWLINE# r [ 'fileName' ] . setValue ( self . checkerFile ) #NEWLINE# d = GafferImage . DeleteChannels ( ) #NEWLINE# d [ 'in' ] . setInput ( r [ 'out' ] ) #NEWLINE# d [ 'mode' ] . setValue ( GafferImage . DeleteChannels . Mode . Delete ) #NEWLINE# d [ 'channels' ] . setValue ( IECore . StringVectorData ( [ 'R' ] ) ) #NEWLINE# self . assertEqual ( r [ 'out' ] . channelDataHash ( 'G' , IECore . V2i ( 0 ) ) , d [ 'out' ] . channelDataHash ( 'G' , IECore . V2i ( 0 ) ) ) #NEWLINE# self . assertEqual ( r [ 'out' ] . channelDataHash ( 'B' , IECore . V2i ( 0 ) ) , d [ 'out' ] . channelDataHash ( 'B' , IECore . V2i ( 0 ) ) ) #NEWLINE# self . assertEqual ( r [ 'out' ] . channelDataHash ( 'A' , IECore . V2i ( 0 ) ) , d [ 'out' ] . channelDataHash ( 'A' , IECore . V2i ( 0 ) ) )