

def testPassThrough(self):
    i = GafferImage.ImageReader()
    i['fileName'].setValue(self.imageFile)
    o = GafferImage.LUT()
    o['in'].setInput(i['out'])
    o['fileName'].setValue(self.lut)
    self.assertEqual(i['out']['format'].hash(), o['out']['format'].hash())
    self.assertEqual(i['out']['dataWindow'].hash(), o['out']['dataWindow'].hash())
    self.assertEqual(i['out']['metadata'].getValue(), o['out']['metadata'].getValue())
    self.assertEqual(i['out']['channelNames'].hash(), o['out']['channelNames'].hash())
    self.assertEqual(i['out']['format'].getValue(), o['out']['format'].getValue())
    o.assertEqual(i['out']['dataWindow'].getValue(), o['out']['dataWindow'].getValue())
    self.assertEqual(i['out']['metadata'].getValue(), o['out']['metadata'].getValue())
    self.assertEqual(i['out']['channelNames'].getValue(), o['out']['channelNames'].getValue())

dataset/ETHPy150Open ImageEngine/gaffer/python/GafferImageTest/LUTTest.py LUTTest.testPassThrough/VarMisuse@208/288 `self`->`o`