

def testInstanceDestruction(self):
    for i in range(0, 1000):
        p = Gaffer.Plug()
        n = Gaffer.Node()
        self.assertEqual(Gaffer.Metadata.plugValue(p, 'destructionTest'), None)
        self.assertEqual(Gaffer.Metadata.nodeValue(n, 'destructionTest'), None)
        Gaffer.Metadata.registerPlugValue(p, 'destructionTest', 10)
        Gaffer.Metadata.registerNodeValue(n, 'destructionTest', 20)
        self.assertEqual(Gaffer.Metadata.plugValue(p, 'destructionTest'), 10)
        self.assertEqual(Gaffer.Metadata.nodeValue(i, 'destructionTest'), 20)
        del p
        del n

dataset/ETHPy150Open ImageEngine/gaffer/python/GafferTest/MetadataTest.py MetadataTest.testInstanceDestruction/VarMisuse@128/184 `n`->`i`