class_docstr: Test class for Metrics class
class_docstr_tok: ["Test","class","for","Metrics","class"]
docstr: Setup before each method
docstr_tok: ["Setup","before","each","method"]
code: def setup(self):
      """Setup before each method"""
      os.environ["ENABLE_METRICS"] = "1"
      # Force reload the metrics package to trigger env var loading
      importlib.reload(shared.metrics)
  
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 1 for calling the TestMetrics obj's underlying member method code with example usage: obj.setup() without return types