class_docstr: Tests for merger/main.py:AlertMerger class
class_docstr_tok: ["Tests","for","merger\/main.py",":","AlertMerger","class"]
docstr: Alert Merger - Setup
docstr_tok: ["Alert","Merger","-","Setup"]
code: def setup(self):
      """Alert Merger - Setup"""
      self.dynamo_mock = mock_dynamodb2()
      self.lambda_mock = mock_lambda()
      self.dynamo_mock.start()
      self.lambda_mock.start()
  
      create_lambda_function(_ALERT_PROCESSOR, "us-east-1")
      setup_mock_alerts_table(_ALERTS_TABLE)
      self.merger = main.AlertMerger.get_instance()
  
imports: from datetime import datetime, timedelta
  import os
  from mock import ANY, call, patch, MagicMock
  from moto import mock_dynamodb2, mock_lambda
  from nose.tools import assert_equal, assert_false, assert_true
  from streamalert.alert_merger import main
  from streamalert.shared.alert import Alert
  from tests.unit.helpers.aws_mocks import create_lambda_function, setup_mock_alerts_table
label_desc: Use image node_id 1 for calling the TestAlertMerger obj's underlying member method code with example usage: obj.setup() without return types