def test_brokenStopProducing(self):
        producer = StringProducer(3)
        def brokenStopProducing():
            raise ArbitraryException("stopProducing is busted")
        producer.stopProducing = brokenStopProducing

        request = Request('GET', '/', _boringHeaders, producer)
        d = request.writeTo(self.transport)
        request.stopWriting()
        self.assertEqual(
            len(self.flushLoggedErrors(ArbitraryException)), 1)
If using an annotated queryset, return the dataset counts as well.
dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/web/test/test_newclient.py/RequestTests.test_brokenStopProducing--crossover with--dataset/ETHPy150Open pandaproject/panda/panda/api/category.py/CategoryResource.dehydrate