class documentation

class StubResolver:

Constructor: StubResolver()

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):
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):

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.
calls: list =

Undocumented

pendingResults: list =

Undocumented