class_docstr: Test class for the IntercomApp
class_docstr_tok: ["Test","class","for","the","IntercomApp"]
docstr: IntercomApp - Gather Logs Next Page
docstr_tok: ["IntercomApp","-","Gather","Logs","Next","Page"]
code: def test_gather_intercom_logs_response_with_next_page(
      self, requests_mock, time_mock
  ):
      """IntercomApp - Gather Logs Next Page"""
      logs = self._get_sample_access_logs()
      logs["pages"]["next"] = "1234abc"
      requests_mock.return_value = Mock(
          status_code=200, json=Mock(return_value=logs)
      )
  
      time_mock.return_value = 100
  
      gathered_logs = self._app._gather_logs()
  
      params = {"created_at_before": 100, "created_at_after": 0}
  
      assert_equal(len(gathered_logs), 2)
      assert_equal(self._app._more_to_poll, True)
      assert_equal(self._app._next_page, "1234abc")
      requests_mock.assert_called_once_with(
          self._app._INTERCOM_LOGS_URL,
          headers=self.test_headers(),
          params=params,
          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 7 for calling the TestIntercomApp obj's underlying member method code with example usage: obj.test_gather_intercom_logs_response_with_next_page(requests_mock, time_mock) without return types