class_docstr: Test class for the Terraform Cluster Generating
class_docstr_tok: ["Test","class","for","the","Terraform","Cluster","Generating"]
docstr: CLI - Terraform Generate Main with Alternate S3 Access Logging Bucket
docstr_tok: ["CLI","-","Terraform","Generate","Main","with","Alternate","S3","Access","Logging","Bucket"]
code: def test_generate_main_s3_access_logging(self):
      """CLI - Terraform Generate Main with Alternate S3 Access Logging Bucket"""
      alt_bucket_name = "alternative-bucket-name"
      self.config["global"]["infrastructure"]["s3_access_logging"] = {
          "bucket_name": alt_bucket_name
      }
      tf_main = generate.generate_main(config=self.config, init=False)
  
      # Should not "create" the logging bucket
      assert_true(
          "logging_bucket" not in tf_main["resource"]["aws_s3_bucket"]
      )
  
imports: from mock import ANY, Mock, patch
  from nose.tools import assert_equal, assert_dict_equal, assert_false, assert_raises, assert_true
  from streamalert.shared.exceptions import ConfigError
  from streamalert_cli.config import CLIConfig
  from streamalert_cli.terraform import common, cloudtrail, cloudwatch_destinations, cloudwatch_events, flow_logs, generate
label_desc: Use image node_id 5 for calling the TestTerraformGenerate obj's underlying member method code with example usage: obj.test_generate_main_s3_access_logging() without return types