

def testMetadataIsntResaved(self):
    s = Gaffer.ScriptNode()
    s['n1'] = GafferTest.AddNode()
    b = Gaffer.Box.create(s, Gaffer.StandardSet([s2['n1']]))
    p = b.promotePlug(b['n1']['op1'])
    Gaffer.Metadata.registerPlugValue(p, 'description', 'ppp')
    b.exportForReference('/tmp/test.grf')
    s2 = Gaffer.ScriptNode()
    s2['r'] = Gaffer.Reference()
    s2['r'].load('/tmp/test.grf')
    self.assertTrue(('Metadata' not in s2.serialise()))

dataset/ETHPy150Open ImageEngine/gaffer/python/GafferTest/ReferenceTest.py ReferenceTest.testMetadataIsntResaved/VarMisuse@44/66 `s`->`s2`