'A fake implementation of L{IResolverSimple.getHostByName}
@param args: A L{list} of all the positional arguments supplied by
the caller.
@param kwargs: A L{list} of all the keyword arguments supplied by
the caller.
@return: A L{Deferred} which may be fired later from the test
fixture.'

def getHostByName(self, *args, **kwargs):

    self.calls.append((args, kwargs))
    d = Deferred()
    self.pendingResults.append(d)
    return d
