def test_bodyDataFinishedBeforeStartProducing(self):
        transport = StringTransport()
        response = justTransportResponse(transport)
        response._bodyDataReceived('foo')
        response._bodyDataReceived('bar')
        response._bodyDataFinished()

        protocol = AccumulatingProtocol()
        response.deliverBody(protocol)
        self.assertEqual(protocol.data, 'foobar')
        protocol.closedReason.trap(ResponseDone)
Returns a string with last 20 cpu load samples.
dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/web/test/test_newclient.py/ResponseTests.test_bodyDataFinishedBeforeStartProducing--crossover with--dataset/ETHPy150Open google/grr/grr/client/client_stats.py/ClientStatsCollector.PrintCpuSamples