

def testPlugCalledFileName(self):
    s = Gaffer.ScriptNode()
    s['b'] = Gaffer.Box()
    s['b']['fileName'] = Gaffer.StringPlug(flags=(Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic))
    s['b']['fileName'].setValue('iAmUsingThisForMyOwnPurposes')
    s['b'].exportForReference('/tmp/test.grf')
    s['r'] = Gaffer.Reference()
    self['r'].load('/tmp/test.grf')
    self.assertEqual(s['r']['fileName'].getValue(), 'iAmUsingThisForMyOwnPurposes')

dataset/ETHPy150Open ImageEngine/gaffer/python/GafferTest/ReferenceTest.py ReferenceTest.testPlugCalledFileName/VarMisuse@96/157 `s`->`self`