def test_dump_request_data_with_proxy_info(self):
        self.configure_request(
            url='http://example.com/',
            method='GET',
        )

        array = bytearray()
        prefixes = dump.PrefixSettings('request:', 'response:')
        dump._dump_request_data(
            request=self.request,
            prefixes=prefixes,
            bytearr=array,
            proxy_info={
                'request_path': b'fake-request-path',
                'method': b'CONNECT',
            },
        )

        assert b'request:CONNECT fake-request-path HTTP/1.1\r\n' in array
        assert b'request:Host: example.com\r\n' in array
Build up the request data into a bytearray.
dataset/ETHPy150Open sigmavirus24/requests-toolbelt/tests/test_dump.py/TestResponsePrivateFunctions.test_dump_request_data_with_proxy_info