class_docstr: Test class for CLIConfig
class_docstr_tok: ["Test","class","for","CLIConfig"]
docstr: CLI - Adding CloudWatch metric alarm, aggregate
docstr_tok: ["CLI","-","Adding","CloudWatch","metric","alarm",",","aggregate"]
code: def test_aggregate_alarm_creation(self):
      """CLI - Adding CloudWatch metric alarm, aggregate"""
      alarm_info = {
          "function": "classifier",
          "metric_name": "TotalRecords",
          "evaluation_periods": 1,
          "alarm_description": "",
          "alarm_name": "Aggregate Unit Testing Total Records Alarm",
          "period": 300,
          "threshold": 100.0,
          "statistic": "Sum",
          "comparison_operator": "LessThanThreshold",
      }
  
      expected_result = {
          "Aggregate Unit Testing Total Records Alarm": {
              "metric_name": "Classifier-TotalRecords",
              "evaluation_periods": 1,
              "alarm_description": "",
              "period": 300,
              "threshold": 100.0,
              "statistic": "Sum",
              "comparison_operator": "LessThanThreshold",
          }
      }
  
      self.config.add_metric_alarm(alarm_info)
      result = self.config["lambda"]["classifier_config"][
          "custom_metric_alarms"
      ]
  
      assert_equal(result, expected_result)
  
file_path: streamalert/tests/unit/streamalert_cli/test_cli_config.py
imports: import json
  from mock import patch, Mock
  from nose.tools import assert_equal, assert_true, assert_false
  from pyfakefs import fake_filesystem_unittest
  from streamalert_cli.config import CLIConfig
  from tests.unit.helpers.config import basic_streamalert_config
label_desc: Use image node_id 10 for calling the TestCLIConfig obj's underlying member method code with example usage: obj.test_aggregate_alarm_creation() without return types