class_docstr: Test class for the BoxApp
docstr: BoxApp - Gather Logs, Success
docstr_tok: ["BoxApp","-","Gather","Logs",",","Success"]
code: def test_gather_logs(self):
      """BoxApp - Gather Logs, Success"""
      with patch.object(self._app, "_client") as client_mock:
          client_mock.make_request.return_value.json.return_value = (
              self._get_sample_payload(10)
          )
  
          assert_equal(len(self._app._gather_logs()), 10)
          assert_equal(
              self._app._last_timestamp, "2017-10-27T12:31:22-07:00"
          )
  
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 12 for calling the TestBoxApp obj's underlying member method code with example usage: obj.test_gather_logs() without return types