def _mock_download_transport(self):
    fake_transport = mock.Mock(spec=['request'])
    chunk1_response = self._mock_requests_response(http_client.PARTIAL_CONTENT, {'content-length': '3', 'content-range': 'bytes 0-2/6'}, content=b'abc')
    chunk2_response = self._mock_requests_response(http_client.PARTIAL_CONTENT, {'content-length': '3', 'content-range': 'bytes 3-5/6'}, content=b'def')
    fake_transport.request.side_effect = [chunk1_response, chunk2_response]
    return fake_transport
def _mock_download_transport(self):
    fake_transport = mock.Mock(spec=['request'])
    chunk1_response = self._mock_requests_response(http_client.PARTIAL_CONTENT, {'content-length': '3', 'content-range': 'bytes 0-2/6'}, content=b'abc')
    chunk2_response = self._mock_requests_response(http_client.PARTIAL_CONTENT, {'content-length': '3', 'content-range': 'bytes 3-5/6'}, content=b'def')
    fake_transport.request.side_effect = [chunk1_response, chunk2_response]
    return fake_transport