

def testLoad(self):
    s = Gaffer.ScriptNode()
    s['n1'] = GafferTest.AddNode()
    s['n2'] = GafferTest.AddNode()
    s['n2']['op1'].setInput(s['n1']['sum'])
    b = Gaffer.Box.create(s, Gaffer.StandardSet([s['n1']]))
    b.exportForReference('/tmp/test.grf')
    s['r'] = Gaffer.Reference()
    s['r'].load('/tmp/test.grf')
    self.assertTrue(('n1' in s['r']))
    self.assertTrue(b['r']['sum'].getInput().isSame(s['r']['n1']['sum']))

dataset/ETHPy150Open ImageEngine/gaffer/python/GafferTest/ReferenceTest.py ReferenceTest.testLoad/VarMisuse@128/196 `s`->`b`