class_docstr: Test class for JSONParser
class_docstr_tok: ["Test","class","for","JSONParser"]
docstr: JSONParser - Regex Key with Invalid JSON Object
docstr_tok: ["JSONParser","-","Regex","Key","with","Invalid","JSON","Object"]
code: def test_regex_key_invalid_json(self):
      """JSONParser - Regex Key with Invalid JSON Object"""
      options = self._json_regex_key_options()
  
      # Invalid JSON and missing optional 'host' envelope key
      data = {
          "message": '{"nested_key_01": "test" "nested_key_02": "test"}',
          "date": "2017/10/01",
          "time": "14:00:00",
      }
  
      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 7 for calling the TestJSONParser obj's underlying member method code with example usage: obj.test_regex_key_invalid_json() without return types