def _mock_transport(self, status_code, headers, content=b''):
    fake_transport = mock.Mock(spec=['request'])
    fake_response = self._mock_requests_response(status_code, headers, content=content)
    fake_transport.request.return_value = fake_response
    return fake_transport
def _mock_transport(self, status_code, headers, content=b):
    fake_transport = mock.Mock(spec=['request'])
    fake_response = self._mock_requests_response(status_code, headers, content=content)
    fake_transport.request.return_value = fake_response
    return fake_transport