class_docstr: Test class for the Terraform Cluster Generating
class_docstr_tok: ["Test","class","for","the","Terraform","Cluster","Generating"]
docstr: CLI - Terraform Generate Advanced Cluster
docstr_tok: ["CLI","-","Terraform","Generate","Advanced","Cluster"]
code: def test_generate_cluster_advanced(self):
      """CLI - Terraform Generate Advanced Cluster"""
  
      tf_cluster = generate.generate_cluster(
          config=self.config, cluster_name="advanced"
      )
  
      cluster_keys = {"module", "output"}
  
      advanced_modules = {
          "classifier_advanced_lambda",
          "classifier_advanced_iam",
          "cloudwatch_logs_destination_advanced",
          # us-west-1 because of the flow logs module in the default (us-west-1) region
          "cloudwatch_logs_destination_advanced_us-west-1",
          # us-east-2 and us-west-2 because of the explicit cloudwatch_destinations
          # in these regions
          "cloudwatch_logs_destination_advanced_us-east-2",
          "cloudwatch_logs_destination_advanced_us-west-2",
          "cloudwatch_monitoring_advanced",
          "kinesis_advanced",
          "kinesis_events_advanced",
          "flow_logs_advanced",
          "cloudtrail_advanced",
          "cloudwatch_events_advanced",
          "s3_events_unit-test_advanced_unit-test-bucket_data",
          "s3_events_unit-test_advanced_unit-test_cloudtrail_data",
      }
  
      assert_equal(set(tf_cluster["module"].keys()), advanced_modules)
      assert_equal(set(tf_cluster.keys()), cluster_keys)
  
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 20 for calling the TestTerraformGenerate obj's underlying member method code with example usage: obj.test_generate_cluster_advanced() without return types