class_docstr: Test class for CSVParser
class_docstr_tok: ["Test","class","for","CSVParser"]
docstr: CSVParser - Nested CSV
docstr_tok: ["CSVParser","-","Nested","CSV"]
code: def test_nested_csv(self):
      """CSVParser - Nested CSV"""
      options = {
          "schema": OrderedDict(
              [
                  ("date", "string"),
                  ("time", "integer"),
                  ("host", "string"),
                  ("env", "string"),
                  (
                      "message",
                      OrderedDict(
                          [
                              ("application", "string"),
                              ("role", "string"),
                              ("cluster_host", "string"),
                              ("cluster_size", "string"),
                              ("result", "string"),
                          ]
                      ),
                  ),
              ]
          )
      }
      data = (
          '"Jan 10, 2017","1485739910","host1.prod.test","Corp",'
          '"chef,web-server,1,100,fail"'
      )
  
      # get parsed data
      parser = CSVParser(options)
      result = parser.parse(data)
      assert_equal(result, True)
  
      expected_result = [
          {
              "date": "Jan 10, 2017",
              "time": 1485739910,
              "host": "host1.prod.test",
              "env": "Corp",
              "message": {
                  "application": "chef",
                  "role": "web-server",
                  "cluster_host": "1",
                  "cluster_size": "100",
                  "result": "fail",
              },
          }
      ]
  
      assert_equal(parser.parsed_records, expected_result)
  
file_path: streamalert/tests/unit/streamalert/classifier/test_parsers_csv.py
imports: from collections import OrderedDict
  import json
  from nose.tools import assert_equal
  from streamalert.classifier.parsers import CSVParser
label_desc: Use image node_id 7 for calling the TestCSVParser obj's underlying member method code with example usage: obj.test_nested_csv() without return types