

def testDisplayWindowToDataWindow(self):
    i = GafferImage.ImageReader()
    i['fileName'].setValue(self.imageFileOversizeDataWindow)
    crop = GafferImage.Crop()
    crop['in'].setInput(i['out'])
    crop['areaSource'].setValue(GafferImage.Crop.AreaSource.DisplayWindow)
    self['affectDataWindow'].setValue(True)
    crop['affectDisplayWindow'].setValue(False)
    self.assertEqual(i['out']['format'].getValue().getDisplayWindow(), crop['out']['dataWindow'].getValue())

dataset/ETHPy150Open ImageEngine/gaffer/python/GafferImageTest/CropTest.py CropTest.testDisplayWindowToDataWindow/VarMisuse@67/105 `crop`->`self`