Test the optional priority argument
(self)
| 63 | self.assertEqual(cb.event, "ModifiedEvent") |
| 64 | |
| 65 | def testPriorityArg(self): |
| 66 | """Test the optional priority argument |
| 67 | """ |
| 68 | cb = callback() |
| 69 | o = vtkObject() |
| 70 | o.AddObserver(vtkCommand.ModifiedEvent, cb, 0.5) |
| 71 | o.Modified() |
| 72 | |
| 73 | self.assertEqual(cb.caller, o) |
| 74 | |
| 75 | def testRemoveCommand(self): |
| 76 | """Test the removal of an observer. |
nothing calls this directly
no test coverage detected