module documentation

Test cases for Twisted.names' root resolver.

Class BootstrapTests Tests for root.bootstrap
Class RootResolverResolverFactoryTests Tests for root.Resolver._resolverFactory.
Class RootResolverTests Tests for twisted.names.root.Resolver.
Class StubDNSDatagramProtocol A do-nothing stand-in for DNSDatagramProtocol which can be used to avoid network traffic in tests where that kind of thing doesn't matter.
Class StubResolver An IResolverSimple implementer which traces all getHostByName calls and their deferred results. The deferred results can be accessed and fired synchronously.
Exception ResolverFactoryArguments Raised by raisingResolverFactory with the *args and **kwargs passed to that function.
Function getOneAddress From the result of a Deferred returned by IResolver.lookupAddress, return the first IPv4 address from the answer section.
Function getOnePayload From the result of a Deferred returned by IResolver.lookupAddress, return the payload of the first record in the answer section.
Function raisingResolverFactory Raise a ResolverFactoryArguments exception containing the positional and keyword arguments passed to resolverFactory.
Constant ROOT_SERVERS Undocumented
Variable _retrySuppression Undocumented
def getOneAddress(results): (source)

From the result of a Deferred returned by IResolver.lookupAddress, return the first IPv4 address from the answer section.

def getOnePayload(results): (source)

From the result of a Deferred returned by IResolver.lookupAddress, return the payload of the first record in the answer section.

def raisingResolverFactory(*args, **kwargs): (source)

Raise a ResolverFactoryArguments exception containing the positional and keyword arguments passed to resolverFactory.

Parameters
*argsA list of all the positional arguments supplied by the caller.
**kwargsA list of all the keyword arguments supplied by the caller.
ROOT_SERVERS: list[str] = (source)

Undocumented

Value
['a.root-servers.net',
 'b.root-servers.net',
 'c.root-servers.net',
 'd.root-servers.net',
 'e.root-servers.net',
 'f.root-servers.net',
 'g.root-servers.net',
...
_retrySuppression = (source)

Undocumented