Tests for (new code in) twisted.application.internet.

Variable AT_LEAST_ONE_ATTEMPT At least enough seconds for ClientService to make one attempt.
Function fakeTargetFunction A fake target function for testing TimerService which does nothing.
Class FakeServer In-memory implementation of IStreamServerEndpoint.
Class FakePort Fake IListeningPort implementation.
Class EndpointServiceTests Tests for twisted.application.internet.
Class TimerServiceTests Tests for twisted.application.internet.TimerService.
Class ConnectInformation Information about endpointForTesting
Function endpointForTesting Make a sample endpoint for testing.
Function catchLogs Catch the global log stream.
Class ClientServiceTests Tests for ClientService.
AT_LEAST_ONE_ATTEMPT =
At least enough seconds for ClientService to make one attempt.
def fakeTargetFunction():

A fake target function for testing TimerService which does nothing.

def endpointForTesting(fireImmediately=False):

Make a sample endpoint for testing.

ParametersfireImmediatelyIf true, fire all Deferreds returned from connect immedaitely.
Returnsa 2-tuple of (information, endpoint), where information is a ConnectInformation describing the operations in progress on endpoint.
def catchLogs(testCase, logPublisher=globalLogPublisher):

Catch the global log stream.

ParameterstestCaseThe test case to add a cleanup to.
logPublisherthe log publisher to add and remove observers for.
Returnsa 0-argument callable that returns a list of textual log messages for comparison. (type: list of unicode)
API Documentation for twisted, generated by pydoctor at 2020-03-25 17:34:30.