

def testReloadDoesntRemoveCustomPlugs(self):
    s = Gaffer.ScriptNode()
    s['n1'] = GafferTest.AddNode()
    s['n2'] = GafferTest.AddNode()
    s['n2']['op1'].setInput(s['n1']['sum'])
    b = Gaffer.Box.create(s2, Gaffer.StandardSet([s['n1']]))
    b.exportForReference('/tmp/test.grf')
    s2 = Gaffer.ScriptNode()
    s2['r'] = Gaffer.Reference()
    s2['r'].load('/tmp/test.grf')
    s2['r']['__mySpecialPlug'] = Gaffer.IntPlug(flags=(Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic))
    s2['r'].load('/tmp/test.grf')
    self.assertTrue(('__mySpecialPlug' in s2['r']))

dataset/ETHPy150Open ImageEngine/gaffer/python/GafferTest/ReferenceTest.py ReferenceTest.testReloadDoesntRemoveCustomPlugs/VarMisuse@67/107 `s`->`s2`