def test_producerRegistration(self):
        transport = StringTransport()
        producer = object()
        encoder = ChunkedEncoder(transport)
        encoder.registerProducer(producer, True)
        self.assertIdentical(transport.producer, producer)
        self.assertTrue(transport.streaming)
        encoder.unregisterProducer()
        self.assertIdentical(transport.producer, None)
        self.assertEqual(transport.value(), b'0\r\n\r\n')
Determines whether the secrets file is for a service account or OAuth.
dataset/ETHPy150Open twisted/twisted/twisted/web/test/test_newclient.py/RequestBodyConsumerTests.test_producerRegistration--crossover with--dataset/ETHPy150Open AppScale/appscale-tools/lib/agents/gce_agent.py/GCEAgent.get_secrets_type