class_docstr: Tests for merger/main.py:AlertMerger class
class_docstr_tok: ["Tests","for","merger\/main.py",":","AlertMerger","class"]
docstr: Alert Merger - Alert Collection - Single Merge Group
docstr_tok: ["Alert","Merger","-","Alert","Collection","-","Single","Merge","Group"]
code: def test_merge_groups_single(self):
      """Alert Merger - Alert Collection - Single Merge Group"""
      alerts = [
          Alert(
              "",
              {"key": True},
              set(),
              created=datetime(year=2000, month=1, day=1),
              merge_by_keys=["key"],
              merge_window=timedelta(minutes=5),
          ),
          Alert(
              "",
              {"key": True, "other": True},
              set(),
              created=datetime(year=2000, month=1, day=1),
              merge_by_keys=["key"],
              merge_window=timedelta(minutes=5),
          ),
      ]
  
      groups = main.AlertMerger._merge_groups(alerts)
      assert_equal(1, len(groups))
      assert_equal(alerts, groups[0].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 5 for calling the TestAlertMerger obj's underlying member method code with example usage: obj.test_merge_groups_single() without return types