class_docstr: Test class for CLIConfig
class_docstr_tok: ["Test","class","for","CLIConfig"]
docstr: CLI - Metric toggling
docstr_tok: ["CLI","-","Metric","toggling"]
code: def test_toggle_metric(self):
      """CLI - Metric toggling"""
      self.config.toggle_metrics("athena_partitioner", enabled=True)
      assert_equal(
          self.config["lambda"]["athena_partitioner_config"][
              "enable_custom_metrics"
          ],
          True,
      )
  
      self.config.toggle_metrics("alert_processor", enabled=False)
      assert_equal(
          self.config["lambda"]["alert_processor_config"][
              "enable_custom_metrics"
          ],
          False,
      )
  
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 6 for calling the TestCLIConfig obj's underlying member method code with example usage: obj.test_toggle_metric() without return types