#NEWLINE# def testEnabledBypass( self ) : #NEWLINE# #INDENT# i = GafferImage . ImageReader ( ) #NEWLINE# i [ 'fileName' ] . setValue ( os . path . expandvars ( '$GAFFER_ROOT/python/GafferImageTest/images/colorbars_half_max.exr' ) ) #NEWLINE# clamp = GafferImage . Clamp ( ) #NEWLINE# clamp [ 'in' ] . setInput ( i [ 'out' ] ) #NEWLINE# clamp [ 'minEnabled' ] . setValue ( False ) #NEWLINE# clamp [ 'maxEnabled' ] . setValue ( False ) #NEWLINE# self . assertEqual ( i [ 'out' ] . imageHash ( ) , clamp [ 'out' ] . imageHash ( ) ) #NEWLINE# self . assertEqual ( i [ 'out' ] [ 'format' ] . hash ( ) , clamp [ 'out' ] [ 'format' ] . hash ( ) ) #NEWLINE# self . assertEqual ( i [ 'out' ] [ 'dataWindow' ] . hash ( ) , clamp [ 'out' ] [ 'dataWindow' ] . hash ( ) ) #NEWLINE# self . assertEqual ( i [ 'out' ] [ 'channelNames' ] . hash ( ) , clamp [ 'out' ] [ 'channelNames' ] . hash ( ) )