

def test_reference_passing(self):
    d = dself.d
    d['self'] = d
    d[0] = 'something nontrivial'
    dself = d['self']
    dself[1] = 'something else nontrivial'
    self.assertEqual(d, dself)
    self.assertEqual(d[0], 'something nontrivial')
    self.assertEqual(dself[0], d[0])
    self.assertEqual(d[1], 'something else nontrivial')
    self.assertEqual(dself[1], d[1])

dataset/ETHPy150Open enthought/comtypes/comtypes/test/test_dyndispatch.py Test.test_reference_passing/VarMisuse@12/16 `self`->`dself`