def test_buildProtocol(self):
        factory = ProxyClientFactory('GET', '/foo', 'HTTP/1.0',
                                     {"accept": "text/html"}, 'Some data',
                                     None)
        proto = factory.buildProtocol(None)
        self.assertIsInstance(proto, ProxyClient)
        self.assertEquals(proto.command, 'GET')
        self.assertEquals(proto.rest, '/foo')
        self.assertEquals(proto.data, 'Some data')
        self.assertEquals(proto.headers,
                          {"accept": "text/html", "connection": "close"})
L{ProxyClientFactory.buildProtocol} should produce a L{ProxyClient}
dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/web/test/test_proxy.py/ProxyClientFactoryTestCase.test_buildProtocol