class documentation
class StubResolver:
Constructor: StubResolver()
Implements interfaces: twisted.internet.interfaces.IResolverSimple
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 | get |
A fake implementation of IResolverSimple.getHostByName |
Instance Variable | calls |
Undocumented |
Instance Variable | pending |
Undocumented |
Parameters | |
calls:list of tuple containing args and kwargs supplied to getHostByName calls. | Undocumented |
pendinglist of Deferred returned by getHostByName. | Undocumented |
A fake implementation of IResolverSimple.getHostByName
Parameters | |
*args | A list of all the positional arguments supplied by the caller. |
**kwargs | A list of all the keyword arguments supplied by the caller. |
Returns | |
A Deferred which may be fired later from the test fixture. |