Test binding with a string event name.
(self)
| 52 | self.assertEqual(cb.event, "ModifiedEvent") |
| 53 | |
| 54 | def testUseEventNameString(self): |
| 55 | """Test binding with a string event name. |
| 56 | """ |
| 57 | cb = callback() |
| 58 | o = vtkObject() |
| 59 | o.AddObserver("ModifiedEvent", cb) |
| 60 | o.Modified() |
| 61 | |
| 62 | self.assertEqual(cb.caller, o) |
| 63 | self.assertEqual(cb.event, "ModifiedEvent") |
| 64 | |
| 65 | def testPriorityArg(self): |
| 66 | """Test the optional priority argument |
nothing calls this directly
no test coverage detected