class documentation

class FakeResolver:

Constructor: FakeResolver(names)

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: Mapping[str, str]):

Undocumented

def getHostByName(self, name: str, timeout: Sequence[int] = ()) -> Deferred[str]:

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

Parameters
name:strThe name to resolve.
timeout:Sequence[int]The lookup timeout, ignore here.
Returns
Deferred[str]Undocumented
names =

Undocumented