class_docstr: Test class for the AliyunApp
class_docstr_tok: ["Test","class","for","the","AliyunApp"]
docstr: AliyunApp - Gather Logs with some entries
docstr_tok: ["AliyunApp","-","Gather","Logs","with","some","entries"]
code: def test_gather_logs_entries(self, client_mock):
      """AliyunApp - Gather Logs with some entries"""
      client_mock.return_value = (
          '{"NextToken":"20","RequestId":'
          '"B1DE97F8-5450-4593-AB38-FB61B799E91D",'
          '"Events":[{"eventTime":"123"},{"eventTime":"123"}],'
          '"EndTime":"2018-07-23T19:28:00Z",'
          '"StartTime":"2018-06-23T19:28:30Z"}'
      )
      logs = self._app._gather_logs()
      assert_equal(2, len(logs))
      assert_true(self._app._more_to_poll)
      assert_equal(self._app.request.get_NextToken(), "20")
  
imports: import json
  import os
  from mock import patch
  from moto import mock_ssm
  from nose.tools import assert_count_equal, assert_equal, assert_false, assert_true, raises
  from aliyunsdkcore.acs_exception.exceptions import ServerException
  from streamalert.apps._apps.aliyun import AliyunApp
  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 10 for calling the TestAliyunApp obj's underlying member method code with example usage: obj.test_gather_logs_entries(client_mock) without return types