'When the HTTP response parser is disconnected, the
L{TransportProxyProducer} which was connected to it as a transport is
stopped.'

def test_proxyStopped(self):

    requestDeferred = self.protocol.request(Request('GET', '/', _boringHeaders, None))
    transport = self.protocol._parser.transport
    self.assertIdentical(transport._producer, self.transport)
    self.protocol._disconnectParser(Failure(ConnectionDone(u'connection    done')))
    self.assertIdentical(transport._producer, None)
    return assertResponseFailed(self, requestDeferred, [ConnectionDone])
