'If the application returns a closeable iterator and the C{close} method
raises an exception when called then the connection is still closed and
the exception is logged.'

def test_applicationCloseException(self):

    responseContent = 'foo'
    class Application(object, ):
        def __init__(self, environ, startResponse):
            startResponse('200    OK', [])
        def __iter__(self):
            (yield responseContent)
        def close(self):
            raise RuntimeError('This    application    had    some    error.')
    return self._connectionClosedTest(Application, responseContent)
