l.t.e.TestEventListener : class documentation

Part of lp.testing.event View In Hierarchy

Listen for a specific object event in tests.

When an event of the specified type is fired off for an object with the specifed type, the given callback is called.

The callback function should take an object and an event.

At the end of the test you have to unregister the event listener using event_listener.unregister().

Method __init__ Undocumented
Method __call__ Undocumented
Method unregister Stop the event listener from listening to events.
def __init__(self, object_type, event_type, callback):
Undocumented
def __call__(self, object, event):
Undocumented
def unregister(self):
Stop the event listener from listening to events.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.