def test_finishedWithErrorWhenInitial(self):
        transport = StringTransport()
        response = justTransportResponse(transport)

        # Sanity check - this test is for the initial state
        self.assertEqual(response._state, 'INITIAL')
        response._bodyDataFinished(Failure(ArbitraryException()))

        protocol = AccumulatingProtocol()
        response.deliverBody(protocol)

        protocol.closedReason.trap(ArbitraryException)
Prints a boardered message to the screen
dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/web/test/test_newclient.py/ResponseTests.test_finishedWithErrorWhenInitial--crossover with--dataset/ETHPy150Open croach/Flask-Fixtures/flask_fixtures/utils.py/print_msg