class documentation

A test mixin providing a testable Reactor class and a dummy connect method which allows instances to pretend to be endpoints.

Class StubEndpoint Endpoint that wraps existing endpoint, substitutes StubHTTPProtocol, and resulting protocol instances are attached to the given test case.
Method buildAgentForWrapperTest Return an Agent suitable for use in tests that wrap the Agent and want both a fake reactor and StubHTTPProtocol.
Method connect Fake implementation of an endpoint which synchronously succeeds with an instance of StubHTTPProtocol for ease of testing.
Method createReactor Create a MemoryReactorClock and give it some hostnames it can resolve.
Instance Variable protocol Undocumented
def buildAgentForWrapperTest(self, reactor): (source)

Return an Agent suitable for use in tests that wrap the Agent and want both a fake reactor and StubHTTPProtocol.

def connect(self, factory): (source)

Fake implementation of an endpoint which synchronously succeeds with an instance of StubHTTPProtocol for ease of testing.

def createReactor(self): (source)

Create a MemoryReactorClock and give it some hostnames it can resolve.

Returns
a MemoryReactorClock-like object with a slightly limited interface (only advance and tcpClients in addition to its formally-declared reactor interfaces), which can resolve a fixed set of domains.
protocol = (source)

Undocumented