class_docstr: Classifier tests
docstr: Classifier - Classify Payload, Bad Record
docstr_tok: ["Classifier","-","Classify","Payload",",","Bad","Record"]
code: def test_classify_payload_bad_record(self):
      """Classifier - Classify Payload, Bad Record"""
      with patch.object(
          Classifier, "_process_log_schemas"
      ), patch.object(Classifier, "_log_bad_records") as log_mock:
          payload_record = self._mock_payload_record()
          payload_record.__nonzero__ = lambda s: False
          self._classifier._classify_payload(
              self._mock_payload([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 21 for calling the TestClassifier obj's underlying member method code with example usage: obj.test_classify_payload_bad_record() without return types