class_docstr: Test class for JSONParser
class_docstr_tok: ["Test","class","for","JSONParser"]
docstr: JSONParser - Schema Match Failure
docstr_tok: ["JSONParser","-","Schema","Match","Failure"]
code: def test_schema_fail(self):
      """JSONParser - Schema Match Failure"""
      options = {
          "schema": {"unit_key_01": "integer", "unit_key_02": "string"}
      }
  
      data = {"hey": 1}
      record_data = json.dumps(data)
  
      # get parsed data
      parser = JSONParser(options)
      assert_equal(parser.parse(record_data), False)
  
      expected_result = [data]
      assert_equal(parser.invalid_parses, expected_result)
  
imports: import json
  from mock import patch
  from nose.tools import assert_equal
  from streamalert.classifier.parsers import JSONParser
label_desc: Use image node_id 2 for calling the TestJSONParser obj's underlying member method code with example usage: obj.test_schema_fail() without return types