class_docstr: Test class for the Terraform handler functions
class_docstr_tok: ["Test","class","for","the","Terraform","handler","functions"]
docstr: Setup before each method
docstr_tok: ["Setup","before","each","method"]
code: def setUp(self):
      """Setup before each method"""
      self.setUpPyfakefs()
      self._build_directory = "unit_test_terraform_path"
  
      mock_main_tf_json = {"module": {"module1": {"foo": "bar"}}}
      mock_prod_tf_json = {
          "module": {"module2": {"foo": "bar"}},
          "resource": {
              "resource1": {"foo": "test"},
              "resource2": {"bar": "test"},
              "resource3": {"pan": "test"},
          },
      }
      # fake *.tf.json files
      self.fs.create_file(
          os.path.join(self._build_directory, "main.tf.json"),
          contents=json.dumps(mock_main_tf_json),
      )
      self.fs.create_file(
          os.path.join(self._build_directory, "prod.tf.json"),
          contents=json.dumps(mock_prod_tf_json),
      )
  
file_path: streamalert/tests/unit/streamalert_cli/terraform/test_handlers.py
imports: import json
  import os
  from mock import patch, Mock
  from nose.tools import assert_equal, assert_false
  from pyfakefs import fake_filesystem_unittest
  from streamalert_cli.terraform.handlers import get_tf_modules
label_desc: Use image node_id 1 for calling the TestTerraformHandlers obj's underlying member method code with example usage: obj.setUp() without return types