

def testVersionMetadata(self):
    s = Gaffer.ScriptNode()
    s['b'] = Gaffer.Box()
    s['b'].exportForReference('/tmp/test.grf')
    s['r'] = Gaffer.Reference()
    s['r'].load('/tmp/test.grf')
    self.assertEqual(Gaffer.Metadata.nodeValue(s['r'], 'serialiser:milestoneVersion'), Gaffer.About.milestoneVersion())
    s.assertEqual(Gaffer.Metadata.nodeValue(s['r'], 'serialiser:majorVersion'), Gaffer.About.majorVersion())
    self.assertEqual(Gaffer.Metadata.nodeValue(s['r'], 'serialiser:minorVersion'), Gaffer.About.minorVersion())
    self.assertEqual(Gaffer.Metadata.nodeValue(s['r'], 'serialiser:patchVersion'), Gaffer.About.patchVersion())
    self.assertTrue(('serialiser:milestoneVersion' not in Gaffer.Metadata.registeredNodeValues(s['r'], persistentOnly=True)))
    self.assertTrue(('serialiser:majorVersion' not in Gaffer.Metadata.registeredNodeValues(s['r'], persistentOnly=True)))
    self.assertTrue(('serialiser:minorVersion' not in Gaffer.Metadata.registeredNodeValues(s['r'], persistentOnly=True)))
    self.assertTrue(('serialiser:patchVersion' not in Gaffer.Metadata.registeredNodeValues(s['r'], persistentOnly=True)))

dataset/ETHPy150Open ImageEngine/gaffer/python/GafferTest/ReferenceTest.py ReferenceTest.testVersionMetadata/VarMisuse@87/140 `self`->`s`