class_docstr: Test class for Metrics class
class_docstr_tok: ["Test","class","for","Metrics","class"]
docstr: Metrics - Valid Metric
docstr_tok: ["Metrics","-","Valid","Metric"]
code: def test_valid_metric(self, log_mock):
      """Metrics - Valid Metric"""
      shared.metrics.MetricLogger.log_metric(
          "classifier", "FailedParses", 100
      )
  
      log_mock.assert_called_with(
          '{"metric_name": "%s", "metric_value": %s}',
          "FailedParses",
          100,
      )
  
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 3 for calling the TestMetrics obj's underlying member method code with example usage: obj.test_valid_metric(log_mock) without return types