class_docstr: Test class for ParserBase
class_docstr_tok: ["Test","class","for","ParserBase"]
docstr: ParserBase - Extract Envelope
docstr_tok: ["ParserBase","-","Extract","Envelope"]
code: def test_extract_envelope(self):
      """ParserBase - Extract Envelope"""
      options = {"configuration": {"envelope_keys": ["env_key_01"]}}
      record = {"env_key_01": "foo", "non_env_key": "bar"}
  
      parser = ParserBase(options)
      envelope = parser._extract_envelope(record)
      assert_equal(envelope, {"env_key_01": "foo"})
  
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 11 for calling the TestParserBaseMethods obj's underlying member method code with example usage: obj.test_extract_envelope() without return types