class_docstr: Test class for the IntercomApp
class_docstr_tok: ["Test","class","for","the","IntercomApp"]
docstr: Sample logs
docstr_tok: ["Sample","logs"]
code: def _get_sample_access_logs():
      """Sample logs"""
      return {
          "type": "activity_log.list",
          "pages": {
              "type": "pages",
              "next": None,
              "page": 1,
              "per_page": 20,
              "total_pages": 1,
          },
          "activity_logs": [
              {
                  "id": "1234",
                  "performed_by": {
                      "type": "admin",
                      "id": "4321",
                      "email": "cool.admin@company.com",
                      "ip": "10.27.91.27",
                  },
                  "metadata": {"sign_in_method": "email"},
                  "created_at": "1537130098",
                  "activity_type": "admin_login_success",
                  "activity_description": "Cool Admin successfully logged in.",
              },
              {
                  "id": "1235",
                  "performed_by": {
                      "type": "admin",
                      "id": "5321",
                      "email": "also.cool.admin@company.com",
                      "ip": "79.120.152.79",
                  },
                  "metadata": {
                      "message": {
                          "id": "5678",
                          "title": "All things cool",
                      },
                      "before": "draft",
                      "after": "live",
                  },
                  "created_at": "1537218403",
                  "activity_type": "message_state_change",
                  "activity_description": "Also Cool Admin changed your All things cool message from draft to live.",
              },
          ],
      }
  
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 3 for calling the TestIntercomApp obj's underlying member method code with example usage: obj._get_sample_access_logs() and returns: dict