class_docstr: Test class for ParserBase classmethods
class_docstr_tok: ["Test","class","for","ParserBase","classmethods"]
docstr: ParserBase - Add Optional Keys
docstr_tok: ["ParserBase","-","Add","Optional","Keys"]
code: def test_add_optional_keys(self):
      """ParserBase - Add Optional Keys"""
      schema = {"key": "string", "optional_key": "integer"}
      optionals = {"optional_key"}
      record = {"key": "data"}
      ParserBase._add_optional_keys(record, schema, optionals)
      assert_equal(record, {"key": "data", "optional_key": 0})
  
imports: import json
  from mock import patch
  from nose.tools import assert_equal
  import streamalert.classifier.parsers
  from streamalert.classifier.parsers import ParserBase
label_desc: Use image node_id 10 for calling the TestParserBaseClassMethods obj's underlying member method code with example usage: obj.test_add_optional_keys() without return types