class_docstr: Test class for the Terraform handler functions
class_docstr_tok: ["Test","class","for","the","Terraform","handler","functions"]
docstr: CLI - Terraform handler function get tf modules read all *.tf.json files
docstr_tok: ["CLI","-","Terraform","handler","function","get","tf","modules","read","all","*",".tf.json","files"]
code: def test_get_tf_modules_read_tf_json_files(self):
      """CLI - Terraform handler function get tf modules read all *.tf.json files"""
      config = Mock(
          return_value={}, build_directory=self._build_directory
      )
      result = get_tf_modules(config)
  
      expected_result = {
          "module": {"module1", "module2"},
          "resource": {
              "resource1.foo",
              "resource2.bar",
              "resource3.pan",
          },
      }
  
      assert_equal(result, expected_result)
  
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 2 for calling the TestTerraformHandlers obj's underlying member method code with example usage: obj.test_get_tf_modules_read_tf_json_files() without return types