class_docstr: Shared - Test Artifact Extractor configuration with mocked config files
class_docstr_tok: ["Shared","-","Test","Artifact","Extractor","configuration","with","mocked","config","files"]
docstr: Shared - test artifact_extractor_enabled helper
docstr_tok: ["Shared","-","test","artifact_extractor_enabled","helper"]
code: def test_artifact_extractor(self):
      """Shared - test artifact_extractor_enabled helper"""
      self.default_conf_data["global"]["infrastructure"][
          "artifact_extractor"
      ]["enabled"] = True
      assert_false(artifact_extractor_enabled(self.default_conf_data))
  
      self.default_conf_data["global"]["infrastructure"]["firehose"][
          "enabled"
      ] = True
      assert_true(artifact_extractor_enabled(self.default_conf_data))
  
imports: import json
  from mock import Mock
  from nose.tools import assert_equal, assert_count_equal, assert_false, assert_raises, assert_true
  from pyfakefs import fake_filesystem_unittest
  from streamalert.shared.config import artifact_extractor_enabled, _validate_config, load_config, parse_lambda_arn, ConfigError
  from tests.unit.helpers.config import basic_streamalert_config
label_desc: Use image node_id 4 for calling the TestConfigArtifactExtractor obj's underlying member method code with example usage: obj.test_artifact_extractor() without return types