'Set up a resource on a distrib site using L{ResourcePublisher} and
then retrieve it from a L{ResourceSubscription} via an HTTP client.
@param child: The resource to publish using distrib.
@param **kwargs: Extra keyword arguments to pass to L{Agent.request} when
requesting the resource.
@return: A L{Deferred} which fires with the result of the request.'

def _requestTest(self, child, **kwargs):

    (mainPort, mainAddr) = self._setupDistribServer(child)
    agent = client.Agent(reactor)
    url = ('http://%s:%s/child' % (mainAddr.host, mainAddr.port))
    url = url.encode('ascii')
    d = agent.request('GET', url, **kwargs)
    d.addCallback(client.readBody)
    return d
