class_docstr: Test class for JSONParser
class_docstr_tok: ["Test","class","for","JSONParser"]
docstr: JSONParser - Regex key
docstr_tok: ["JSONParser","-","Regex","key"]
code: def test_json_regex_key(self):
      """JSONParser - Regex key"""
      options = {
          "schema": {
              "nested_key_01": "string",
              "nested_key_02": "string",
          },
          "configuration": {"json_regex_key": "message"},
      }
  
      record_data = json.dumps(
          {
              "time": "14:01",
              "date": "Jan 01, 2017",
              "host": "host1.test.domain.tld",
              "message": "<10> auditd[1300] info: "
              '{"nested_key_01": "nested_info",'
              '"nested_key_02": "more_nested_info"}',
          }
      )
  
      # get parsed data
      parser = JSONParser(options)
      assert_equal(parser.parse(record_data), True)
  
      expected_result = [
          {
              "nested_key_01": "nested_info",
              "nested_key_02": "more_nested_info",
          }
      ]
  
      assert_equal(parser.parsed_records, 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 14 for calling the TestJSONParser obj's underlying member method code with example usage: obj.test_json_regex_key() without return types