class_docstr: Tests for shared/alert_table.py
docstr: Alert Table - Paginate Traverses Multiple Pages
docstr_tok: ["Alert","Table","-","Paginate","Traverses","Multiple","Pages"]
code: def test_paginate_multiple(self):
      """Alert Table - Paginate Traverses Multiple Pages"""
  
      def mock_table_op(**kwargs):
          """Returns two pages of mock results (moto's dynamo does not paginate)"""
          if "ExclusiveStartKey" in kwargs:
              return {"Items": [2]}
          return {"Items": [1], "LastEvaluatedKey": "somewhere"}
  
      results = list(self.alert_table._paginate(mock_table_op, {}))
      assert_equal([1, 2], results)
  
imports: from datetime import datetime
  import os
  from botocore.exceptions import ClientError
  from mock import ANY, MagicMock, patch
  from moto import mock_dynamodb2
  from nose.tools import assert_equal, assert_raises
  from streamalert.shared import alert, alert_table
  from tests.unit.helpers.aws_mocks import setup_mock_alerts_table
label_desc: Use image node_id 4 for calling the TestAlertTable obj's underlying member method code with example usage: obj.test_paginate_multiple() and returns: dict, dict