class_docstr: Test class for the BoxApp
docstr: BoxApp - Gather Logs, requests.ConnectionError
docstr_tok: ["BoxApp","-","Gather","Logs",",","requests.ConnectionError"]
code: def test_gather_logs_requests_error(self, log_mock):
      """BoxApp - Gather Logs, requests.ConnectionError"""
      with patch.object(self._app, "_client") as client_mock:
          self._app._next_stream_position = 10241040195019
          client_mock.make_request.side_effect = (
              requests.exceptions.ConnectionError(response="bad error")
          )
          assert_false(self._app._gather_logs())
          log_mock.assert_called_with(
              "Bad response received from host, will retry once"
          )
  
imports: import json
  import os
  from boxsdk.exception import BoxException
  from mock import call, Mock, mock_open, patch
  from moto import mock_ssm
  from nose.tools import assert_equal, assert_false, assert_count_equal, assert_true
  import requests
  from streamalert.apps._apps.box import BoxApp
  from tests.unit.streamalert.apps.test_helpers import get_event, put_mock_params
  from tests.unit.streamalert.shared.test_config import get_mock_lambda_context
label_desc: Use image node_id 14 for calling the TestBoxApp obj's underlying member method code with example usage: obj.test_gather_logs_requests_error(log_mock) without return types