#NEWLINE# def testOffsetDisplayWindow( self ) : #NEWLINE# #INDENT# box = IECore . Box2i ( IECore . V2i ( 6 , ( - 4 ) ) , IECore . V2i ( 50 , 150 ) ) #NEWLINE# f = GafferImage . Format ( box , 1.1 ) #NEWLINE# self . assertEqual ( f . getDisplayWindow ( ) , box ) #NEWLINE# self . assertEqual ( f . width ( ) , 44 ) #NEWLINE# self . assertEqual ( f . height ( ) , 154 ) #NEWLINE# self . assertEqual ( f . getPixelAspect ( ) , 1.1 )