Test binding a command that has arguments.
(self)
| 41 | self.assertEqual(vtkCommand.ErrorEvent, 39) |
| 42 | |
| 43 | def testCommandWithArgs(self): |
| 44 | """Test binding a command that has arguments. |
| 45 | """ |
| 46 | cb = callback() |
| 47 | o = vtkObject() |
| 48 | o.AddObserver(vtkCommand.ModifiedEvent, cb) |
| 49 | o.Modified() |
| 50 | |
| 51 | self.assertEqual(cb.caller, o) |
| 52 | self.assertEqual(cb.event, "ModifiedEvent") |
| 53 | |
| 54 | def testUseEventNameString(self): |
| 55 | """Test binding with a string event name. |
nothing calls this directly
no test coverage detected