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(), '0\r\n\r\n')
Testing OGRGeomType object.
dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/web/test/test_newclient.py/RequestBodyConsumerTests.test_producerRegistration--crossover with--dataset/ETHPy150Open CollabQ/CollabQ/vendor/django/contrib/gis/tests/test_gdal_geom.py/OGRGeomTest.test00_geomtype