def test_buildProtocol(self):
        factory = ProxyClientFactory(b'GET', b'/foo', b'HTTP/1.0',
                                     {b"accept": b"text/html"}, b'Some data',
                                     None)
        proto = factory.buildProtocol(None)
        self.assertIsInstance(proto, ProxyClient)
        self.assertEqual(proto.command, b'GET')
        self.assertEqual(proto.rest, b'/foo')
        self.assertEqual(proto.data, b'Some data')
        self.assertEqual(proto.headers,
                          {b"accept": b"text/html", b"connection": b"close"})
Return True if ``filename`` contains ``text`` (which may be a regex.)
dataset/ETHPy150Open twisted/twisted/twisted/web/test/test_proxy.py/ProxyClientFactoryTests.test_buildProtocol--crossover with--dataset/ETHPy150Open fabric/fabric/fabric/contrib/files.py/contains