class_docstr: Test class for KVParser
docstr: KV Parser - Extract Record, Duplicate Fields
docstr_tok: ["KV","Parser","-","Extract","Record",",","Duplicate","Fields"]
code: def test_extract_record_duplicate_fields(self):
      """KV Parser - Extract Record, Duplicate Fields"""
      options = {
          "schema": OrderedDict(
              [
                  ("name", "string"),
                  ("result", "string"),
                  ("test", "string"),
              ]
          )
      }
      data = "name=foo result=bar name=baz"
  
      # get parsed data
      parser = KVParser(options)
      result = parser._extract_record(data)
  
      expected_result = {"name": "foo", "result": "bar", "test": "baz"}
  
      assert_equal(result, expected_result)
  
imports: from collections import OrderedDict
  from nose.tools import assert_equal
  from streamalert.classifier.parsers import KVParser
label_desc: Use image node_id 3 for calling the TestKVParser obj's underlying member method code with example usage: obj.test_extract_record_duplicate_fields() without return types