def test_on_update(self): self._call_count = 0 ImageEditEvent.connect(self._call_count_function) image = self.create_image() image.on_update() self.assertEqual(self._call_count, 1)
def on_update(self): ImageEditEvent.emit(self)