#NEWLINE# def testExpandDataWindow( self ) : #NEWLINE# #INDENT# c = GafferImage . Constant ( ) #NEWLINE# b = GafferImage . Blur ( ) #NEWLINE# b [ 'in' ] . setInput ( c [ 'out' ] ) #NEWLINE# b [ 'radius' ] . setValue ( IECore . V2f ( 1 ) ) #NEWLINE# self . assertEqual ( b [ 'out' ] [ 'dataWindow' ] . getValue ( ) , c [ 'out' ] [ 'dataWindow' ] . getValue ( ) ) #NEWLINE# b [ 'expandDataWindow' ] . setValue ( True ) #NEWLINE# self . assertEqual ( b [ 'out' ] [ 'dataWindow' ] . getValue ( ) . min , ( c [ 'out' ] [ 'dataWindow' ] . getValue ( ) . min - IECore . V2i ( 2 ) ) ) #NEWLINE# self . assertEqual ( b [ 'out' ] [ 'dataWindow' ] . getValue ( ) . max , ( c [ 'out' ] [ 'dataWindow' ] . getValue ( ) . max + IECore . V2i ( 2 ) ) )