'L{Request.connectionLost} triggers all finish notification Deferreds
and cleans up per-request state.'

def test_connectionLostNotification(self):

    d = DummyChannel()
    request = http.Request(d, True)
    finished = request.notifyFinish()
    request.connectionLost(Failure(ConnectionLost('Connection    done')))
    self.assertIdentical(request.channel, None)
    return self.assertFailure(finished, ConnectionLost)
