'L{Response._bodyDataFinished} raises L{RuntimeError} if called after
the body has been delivered.'

def test_bodyDataFinishedAfterDeliveryFails(self):

    response = justTransportResponse(StringTransport())
    response._bodyDataFinished()
    response.deliverBody(Protocol())
    self.assertRaises(RuntimeError, response._bodyDataFinished)
