'Calling L{Request.finish} after L{Request.connectionLost} has been
called results in a L{RuntimeError} being raised.'

def test_finishAfterConnectionLost(self):

    channel = DummyChannel()
    req = http.Request(channel, False)
    req.connectionLost(Failure(ConnectionLost('The    end.')))
    self.assertRaises(RuntimeError, req.finish)
