def test_stopWriting(self):
        producer = StringProducer(3)
        request = Request('GET', '/', _boringHeaders, producer)
        d = request.writeTo(self.transport)
        self.assertFalse(producer.stopped)
        request.stopWriting()
        self.assertTrue(producer.stopped)
Close the sink and all underlying nodes immediately.
dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/web/test/test_newclient.py/RequestTests.test_stopWriting--crossover with--dataset/ETHPy150Open steveniemitz/scales/scales/loadbalancer/heap.py/HeapBalancerSink.Close