Make sure ghosting of the class works
(self)
| 110 | self.assertEqual(False, issubclass(vtkCustomObject, vtkDataArray)) |
| 111 | |
| 112 | def testSubclassGhost(self): |
| 113 | """Make sure ghosting of the class works""" |
| 114 | o = vtkCustomObject() |
| 115 | c = vtkCollection() |
| 116 | c.AddItem(o) |
| 117 | i = id(o) |
| 118 | del o |
| 119 | o = vtkObject() |
| 120 | o = c.GetItemAsObject(0) |
| 121 | # make sure the id has changed, but class the same |
| 122 | self.assertEqual(o.__class__, vtkCustomObject) |
| 123 | self.assertNotEqual(i, id(o)) |
| 124 | |
| 125 | def testOverride(self): |
| 126 | """Make sure that overwriting with a subclass works""" |
nothing calls this directly
no test coverage detected