'A fake resolver callable.
@param hostName: The hostname to resolve.
@param portNumber: The port number the returned address should
include.
@return: L{fakeResolverCalls}
@rtype: L{Deferred}'

def fakeResolver(self, hostName, portNumber):

    self.fakeResolverCalls.append((hostName, portNumber))
    return self.fakeResolverReturns
