Test the removal of an observer.
(self)
| 73 | self.assertEqual(cb.caller, o) |
| 74 | |
| 75 | def testRemoveCommand(self): |
| 76 | """Test the removal of an observer. |
| 77 | """ |
| 78 | cb = callback() |
| 79 | o = vtkObject() |
| 80 | o.AddObserver(vtkCommand.ModifiedEvent, cb) |
| 81 | o.Modified() |
| 82 | self.assertEqual(cb.caller, o) |
| 83 | o.RemoveObservers(vtkCommand.ModifiedEvent) |
| 84 | cb.caller = None |
| 85 | cb.event = None |
| 86 | o.Modified() |
| 87 | self.assertEqual(cb.caller, None) |
| 88 | |
| 89 | def testGetCommand(self): |
| 90 | """Test getting the vtkCommand object |
nothing calls this directly
no test coverage detected