class_docstr: Classifier tests
docstr: Classifier - Classify Payload
docstr_tok: ["Classifier","-","Classify","Payload"]
code: def test_classify_payload(self, process_mock):
      """Classifier - Classify Payload"""
      with patch.object(
          classifier_module, "Normalizer"
      ) as normalizer_mock, patch.object(
          Classifier, "_log_bad_records"
      ) as log_mock:
          payload_record = self._mock_payload_record()
          self._classifier._classify_payload(
              self._mock_payload([payload_record])
          )
          process_mock.assert_called_with(
              payload_record,
              OrderedDict(
                  [
                      (
                          "log_type_01:sub_type",
                          self._mock_logs()["log_type_01:sub_type"],
                      )
                  ]
              ),
          )
          normalizer_mock.normalize.assert_called_with(
              payload_record.parsed_records[-1], "foo:bar"
          )
          assert_equal(self._classifier._payloads, [payload_record])
          log_mock.assert_called_with(payload_record, 1)
  
imports: from collections import OrderedDict
  import os
  from mock import Mock, patch
  from nose.tools import assert_equal, assert_raises
  import streamalert.classifier.classifier
  from streamalert.classifier.classifier import Classifier
  from streamalert.shared.exceptions import ConfigError
label_desc: Use image node_id 19 for calling the TestClassifier obj's underlying member method code with example usage: obj.test_classify_payload(process_mock) without return types