class_docstr: Test class for CLIConfig
class_docstr_tok: ["Test","class","for","CLIConfig"]
docstr: Setup before each method
docstr_tok: ["Setup","before","each","method"]
code: def setup(self):
      """Setup before each method"""
      config_data = basic_streamalert_config()
  
      self.fs_patcher = fake_filesystem_unittest.Patcher()
      self.fs_patcher.setUp()
  
      self.fs_patcher.fs.create_file(
          "./conf/global.json",
          contents=json.dumps(config_data["global"]),
      )
      self.fs_patcher.fs.create_file(
          "./conf/threat_intel.json",
          contents=json.dumps(config_data["threat_intel"]),
      )
      self.fs_patcher.fs.create_file(
          "./conf/normalized_types.json",
          contents=json.dumps(config_data["normalized_types"]),
      )
      self.fs_patcher.fs.create_file(
          "./conf/lambda.json",
          contents=json.dumps(config_data["lambda"]),
      )
      self.fs_patcher.fs.create_file(
          "./conf/clusters/prod.json",
          contents=json.dumps(config_data["clusters"]["prod"]),
      )
  
      # Create the config instance after creating the fake filesystem so that
      # CLIConfig uses our mocked config files instead of the real ones.
      self.config = CLIConfig("./conf/")
  
file_path: streamalert/tests/unit/streamalert_cli/test_cli_config.py
imports: import json
  from mock import patch, Mock
  from nose.tools import assert_equal, assert_true, assert_false
  from pyfakefs import fake_filesystem_unittest
  from streamalert_cli.config import CLIConfig
  from tests.unit.helpers.config import basic_streamalert_config
label_desc: Use image node_id 2 for calling the TestCLIConfig obj's underlying member method code with example usage: obj.setup() without return types