class_docstr: Test class for the OneLoginApp
class_docstr_tok: ["Test","class","for","the","OneLoginApp"]
docstr: OneLoginApp - Gather Events Entry Point, No Pagination
docstr_tok: ["OneLoginApp","-","Gather","Events","Entry","Point",",","No","Pagination"]
code: def test_gather_logs_no_pagination(self, requests_mock):
      """OneLoginApp - Gather Events Entry Point, No Pagination"""
      logs = self._get_sample_events(5, None)
      self._app._auth_headers = True
      self._app._next_page_url = None
      self._app._last_timestamp = 1507698237
      requests_mock.return_value = Mock(
          status_code=200, json=Mock(side_effect=[logs])
      )
      events = self._app._gather_logs()
      assert_equal(len(logs["data"]), len(events))
      assert_equal(
          logs["pagination"]["next_link"], self._app._next_page_url
      )
  
imports: import os
  from mock import Mock, patch
  from moto import mock_ssm
  from nose.tools import assert_equal, assert_false, assert_count_equal
  from streamalert.apps._apps.onelogin import OneLoginApp
  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 15 for calling the TestOneLoginApp obj's underlying member method code with example usage: obj.test_gather_logs_no_pagination(requests_mock) without return types