twisted.test.proto_helpers.EventLoggingObserver(Sequence)
class documentationtwisted.test.proto_helpers
View Source
(View In Hierarchy)
Implements interfaces: twisted.logger.ILogObserver
ILogObserver
That stores its events in a list for later inspection. This class is
similar to LimitedHistoryLogObserver
save that the internal buffer is public and intended for external
inspection. The observer implements the sequence protocol to ease
iteration of the events.
Instance Variable | _events | The events captured by this observer (type: list ) |
Method | __init__ | Undocumented |
Method | __len__ | Undocumented |
Method | __getitem__ | Undocumented |
Method | __iter__ | Undocumented |
Method | __call__ | |
Class Method | createWithCleanup | Create an EventLoggingObserver
instance that observes the provided publisher and will be cleaned up with
addCleanup(). |
Create an EventLoggingObserver
instance that observes the provided publisher and will be cleaned up with
addCleanup().
Parameters | testInstance | Test instance in which this logger is used. (type: twisted.trial.unittest.TestCase ) |
publisher | Log publisher to observe. (type: twisted.logger.LogPublisher) | |
Returns | An EventLoggingObserver configured to observe the provided publisher. (type: twisted.test.proto_helpers.EventLoggingObserver ) |