

def testDeregisterNodeValue(self):
    n = GafferTest.AddNode()
    self.assertEqual(Gaffer.Metadata.nodeValue(n, 'deleteMe'), None)
    Gaffer.Metadata.registerNodeValue(Gaffer.Node, 'deleteMe', 10)
    self.assertEqual(Gaffer.Metadata.nodeValue(n, 'deleteMe'), 10)
    Gaffer.Metadata.registerNodeValue(Gaffer.ComputeNode, 'deleteMe', 20)
    self.assertEqual(Gaffer.Metadata.nodeValue(n, 'deleteMe'), 20)
    Gaffer.Metadata.deregisterNodeValue(Gaffer.ComputeNode, 'deleteMe')
    self.assertEqual(Gaffer.Metadata.nodeValue(n, 'deleteMe'), 10)
    Gaffer.Metadata.deregisterNodeValue(Gaffer.Node, 'deleteMe')
    n.assertEqual(Gaffer.Metadata.nodeValue(n, 'deleteMe'), None)

dataset/ETHPy150Open ImageEngine/gaffer/python/GafferTest/MetadataTest.py MetadataTest.testDeregisterNodeValue/VarMisuse@146/226 `self`->`n`