twisted.words.test.test_jabberclient.InitiatingInitializerHarness(object) class documentationtwisted.words.test.test_jabberclient
(View In Hierarchy)
Known subclasses: twisted.words.test.test_jabberclient.BindInitializerTests, twisted.words.test.test_jabberclient.IQAuthInitializerTests, twisted.words.test.test_jabberclient.SessionInitializerTests
Testing harness for interacting with XML stream initializers.
This sets up an utility.XmlPipe
to create a communication channel between the initializer and the stubbed 
receiving entity. It features a sink and source side that both act 
similarly to a real xmlstream.XmlStream.
The sink is augmented with an authenticator to which initializers can be 
added.
The harness also provides some utility methods to work with event observers and deferreds.
Observe an output event, returning a deferred.
The returned deferred will be fired when the given event has been 
observed on the source end of the XmlPipe 
tied to the protocol under test. The handler is added as the first 
callback.
| Parameters | event | The event to be observed. See utility.EventDispatcher.addOnetimeObserver. | 
| handler | The handler to be called with the observed event object. | |
| Returns | (type: defer.Deferred.) | |