'If an L{XMLRPC} C{xmlrpc_*} method returns a L{defer.Deferred}, the
response to the request is the result of that L{defer.Deferred}.'

def test_deferredResponse(self):

    self.resource.render(self.request)
    self.assertEqual(self.request.written, [])
    self.result.callback('result')
    resp = xmlrpclib.loads(''.join(self.request.written))
    self.assertEqual(resp, (('result',), None))
    self.assertEqual(self.request.finished, 1)
