class documentation

class StubResolver: (source)

Implements interfaces: twisted.internet.interfaces.IResolverSimple

View In Hierarchy

An IResolverSimple implementer which traces all getHostByName calls and their deferred results. The deferred results can be accessed and fired synchronously.

Method __init__ No summary
Method getHostByName A fake implementation of IResolverSimple.getHostByName
Instance Variable calls Undocumented
Instance Variable pendingResults Undocumented
def __init__(self): (source)
Parameters
calls:list of tuple containing args and kwargs supplied to getHostByName calls.Undocumented
pendingResults:list of Deferred returned by getHostByName.Undocumented
def getHostByName(self, *args, **kwargs): (source)

A fake implementation of IResolverSimple.getHostByName

Parameters
*argsA list of all the positional arguments supplied by the caller.
**kwargsA list of all the keyword arguments supplied by the caller.
Returns
A Deferred which may be fired later from the test fixture.

Undocumented

pendingResults: list = (source)

Undocumented