class_docstr: Tests for shared/alert_table.py
docstr: Alert Table - Pending Alerts From Table Query
docstr_tok: ["Alert","Table","-","Pending","Alerts","From","Table","Query"]
code: def test_get_alert_records(self):
      """Alert Table - Pending Alerts From Table Query"""
      result = list(
          self.alert_table.get_alert_records(
              "odd", _ALERT_PROCESSOR_TIMEOUT_SEC
          )
      )
      assert_equal(1, len(result))
      # All the properties should be the same between the two alerts
      assert_equal(self.alerts[1].dynamo_record(), result[0])
  
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 6 for calling the TestAlertTable obj's underlying member method code with example usage: obj.test_get_alert_records() without return types