

def testCopy(self):
    n = Gaffer.Node()
    s = IECore.StringVectorData(['a', 'b', 'c'])
    Gaffer.Metadata.registerNodeValue(n, 'stringVector', s)
    s2 = Gaffer.Metadata.nodeValue(n, 'stringVector')
    self.assertEqual(s, s2)
    self.assertFalse(s.isSame(s2))
    s3 = Gaffer.Metadata.nodeValue(n, 'stringVector', _copy=False)
    self.assertEqual(s, s3)
    s.assertTrue(s.isSame(s3))

dataset/ETHPy150Open ImageEngine/gaffer/python/GafferTest/MetadataTest.py MetadataTest.testCopy/VarMisuse@106/144 `self`->`s`