

def testReloadWithUnconnectedPlugs(self):
    s = Gaffer.ScriptNode()
    s['b'] = Gaffer.Box()
    s['b']['p'] = Gaffer.Plug(flags=(Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic))
    s['b'].exportForReference('/tmp/test.grf')
    s['r'] = Gaffer.Reference()
    s['r'].load('/tmp/test.grf')
    self.assertEqual(s['r'].keys(), ['user', 'p'])
    s2 = Gaffer.ScriptNode()
    s2.execute(self.serialise())
    self.assertEqual(s2['r'].keys(), ['user', 'p'])

dataset/ETHPy150Open ImageEngine/gaffer/python/GafferTest/ReferenceTest.py ReferenceTest.testReloadWithUnconnectedPlugs/VarMisuse@125/188 `s`->`self`