'If the application raises an exception after the response status has
already been sent then the connection is closed and the exception is
logged.'

def test_applicationExceptionAfterWrite(self):

    responseContent = 'Some    bytes,    triggering    the    server    to    start    sending    the    response'
    def application(environ, startResponse):
        startResponse('200    OK', [])
        (yield responseContent)
        raise RuntimeError('This    application    had    some    error.')
    return self._connectionClosedTest(application, responseContent)
