'While waiting for the L{Deferred} returned by an L{XMLRPC} C{xmlrpc_*}
method to fire, the connection the request was issued over may close.
If this happens, neither C{write} nor C{finish} is called on the
request.'

def test_interruptedDeferredResponse(self):

    self.resource.render(self.request)
    self.request.processingFailed(failure.Failure(ConnectionDone('Simulated')))
    self.result.callback('result')
    self.assertEqual(self.request.written, [])
    self.assertEqual(self.request.finished, 0)
