class_docstr: Test class for the IntercomApp
class_docstr_tok: ["Test","class","for","the","IntercomApp"]
docstr: IntercomApp - Gather Logs Pagination
docstr_tok: ["IntercomApp","-","Gather","Logs","Pagination"]
code: def test_gather_intercom_logs_pagination(self, requests_mock):
      """IntercomApp - Gather Logs Pagination"""
      logs = self._get_sample_access_logs()
      self._app._next_page = "567cde"
      requests_mock.return_value = Mock(
          status_code=200, json=Mock(return_value=logs)
      )
  
      gathered_logs = self._app._gather_logs()
  
      assert_equal(len(gathered_logs), 2)
      requests_mock.assert_called_once_with(
          "567cde",
          headers=self.test_headers(),
          params=None,
          timeout=self._app._DEFAULT_REQUEST_TIMEOUT,
      )
  
file_path: streamalert/tests/unit/streamalert/apps/test_apps/test_intercom.py
imports: import os
  from mock import Mock, patch
  from moto import mock_ssm
  from nose.tools import assert_equal, assert_false, assert_count_equal, assert_is_none
  from streamalert.apps._apps.intercom import IntercomApp
  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 8 for calling the TestIntercomApp obj's underlying member method code with example usage: obj.test_gather_intercom_logs_pagination(requests_mock) without return types