def test_errorMessageOnConnectionLostBeforeGenerationFailedDoesNotConfuse(self):
        errors = []
        log.addObserver(errors.append)
        self.addCleanup(log.removeObserver, errors.append)

        def check(ignore):
            error = errors[0]
            self.assertEquals(error['why'],
                              'Error writing request, but not in valid state '
                              'to finalize request: CONNECTION_LOST')

        return self.test_connectionLostDuringRequestGeneration(
            'errback').addCallback(check)
Read at least one byte of cooked data unless EOF is hit.
dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/web/test/test_newclient.py/HTTP11ClientProtocolTests.test_errorMessageOnConnectionLostBeforeGenerationFailedDoesNotConfuse--crossover with--dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/telnetlib.py/Telnet.read_some