class_docstr: Tests for merger/main.py:AlertMergeGroup class
class_docstr_tok: ["Tests","for","merger\/main.py",":","AlertMergeGroup","class"]
docstr: Alert Merger - Merge Group - Add Alert to Group
docstr_tok: ["Alert","Merger","-","Merge","Group","-","Add","Alert","to","Group"]
code: def test_add_mergeable(self):
      """Alert Merger - Merge Group - Add Alert to Group"""
      alert = Alert(
          "",
          {"key": True},
          set(),
          merge_by_keys=["key"],
          merge_window=timedelta(minutes=5),
      )
      group = main.AlertMergeGroup(alert)
      assert_true(
          group.add(alert)
      )  # An alert can always merge with itself
      assert_equal([alert, alert], group.alerts)
  
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 TestAlertMergeGroup obj's underlying member method code with example usage: obj.test_add_mergeable() without return types