class documentation

class FakeResolver: (source)

Implements interfaces: twisted.internet.interfaces.IResolverSimple

View In Hierarchy

A resolver implementation based on a dict mapping names to addresses.

Method __init__ Undocumented
Method getHostByName Return the address mapped to name if it exists, or raise a DNSLookupError.
Instance Variable names Undocumented
def __init__(self, names): (source)

Undocumented

def getHostByName(self, name, timeout): (source)

Return the address mapped to name if it exists, or raise a DNSLookupError.

Parameters
nameThe name to resolve.
timeoutThe lookup timeout, ignore here.

Undocumented