Пример #1
0
 def testCastOperatorReturningReference(self):
     index = ReferentModelIndex()
     index.setValue(123)
     self.assertEqual(index.value(), 123)
     self.assertEqual(index.value(), ModelIndex.getValue(index))
Пример #2
0
 def testCastOperatorReturningReference(self):
     index = ReferentModelIndex()
     index.setValue(123)
     self.assertEqual(index.value(), 123)
     self.assertEqual(index.value(), ModelIndex.getValue(index))