module documentation

Tests for implementations of IHostnameResolver and their interactions with reactor implementations.

Class DeterministicThreadPool Create a deterministic ThreadPool object.
Class FakeAddrInfoGetter Test object implementing getaddrinfo.
Class HelperTests Tests for error cases of helpers used in this module.
Class HostnameResolutionTests Tests for hostname resolution.
Class JustEnoughReactor Just enough subclass implementation to be a valid ReactorBase subclass.
Class LegacyCompatibilityTests Older applications may supply an object to the reactor via installResolver that only provides IResolverSimple. SimpleResolverComplexifier is a wrapper for an IResolverSimple.
Class ReactorInstallationTests Tests for installing old and new resolvers onto a PluggableResolverMixin and ReactorBase (from which all of Twisted's reactor implementations derive).
Class ResultHolder A resolution receiver which holds onto the results it received.
Class SillyResolverSimple Trivial implementation of IResolverSimple
Function deterministicPool Create a deterministic threadpool.
Function deterministicReactorThreads Create a deterministic IReactorThreads
def deterministicPool(): (source)

Create a deterministic threadpool.

Returns
2-tuple of ThreadPool, 0-argument work callable; when work is called, do the work.
def deterministicReactorThreads(): (source)

Create a deterministic IReactorThreads

Returns
a 2-tuple consisting of an IReactorThreads-like object and a 0-argument callable that will perform one unit of work invoked via that object's callFromThread method.