class_docstr: Test class for ParserBase classmethods
class_docstr_tok: ["Test","class","for","ParserBase","classmethods"]
docstr: ParserBase - Convert Type, With Optionals Missing
docstr_tok: ["ParserBase","-","Convert","Type",",","With","Optionals","Missing"]
code: def test_convert_type_optionals(self, log_mock):
      """ParserBase - Convert Type, With Optionals Missing"""
      schema = {"required_key": "string", "optional_key": "string"}
      optionals = {"optional_key"}
      record = {"required_key": "required_value"}
      assert_equal(
          ParserBase._convert_type(record, schema, optionals), True
      )
      assert_equal(record, {"required_key": "required_value"})
      log_mock.assert_called_with(
          "Skipping optional key not found in record: %s",
          "optional_key",
      )
  
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 33 for calling the TestParserBaseClassMethods obj's underlying member method code with example usage: obj.test_convert_type_optionals(log_mock) without return types