class_docstr: Test class for Metrics class
class_docstr_tok: ["Test","class","for","Metrics","class"]
docstr: Metrics - Metrics Disabled
docstr_tok: ["Metrics","-","Metrics","Disabled"]
code: def test_disabled_metrics(self, log_mock):
      """Metrics - Metrics Disabled"""
      with patch.dict("os.environ", {"ENABLE_METRICS": "0"}):
          # Force reload the metrics package to trigger constant loading
          importlib.reload(shared.metrics)
  
          log_mock.assert_called_with(
              "Logging of metric data is currently disabled."
          )
  
file_path: streamalert/tests/unit/streamalert/shared/test_metrics.py
imports: import os
  import importlib
  from mock import patch, ANY
  from nose.tools import assert_equal
  from streamalert import shared
label_desc: Use image node_id 4 for calling the TestMetrics obj's underlying member method code with example usage: obj.test_disabled_metrics(log_mock) without return types