class_docstr: Test class for the Terraform Cluster Generating
class_docstr_tok: ["Test","class","for","the","Terraform","Cluster","Generating"]
docstr: CLI - Terraform Generate Flow Logs
docstr_tok: ["CLI","-","Terraform","Generate","Flow","Logs"]
code: def test_generate_flow_logs(self):
      """CLI - Terraform Generate Flow Logs"""
      cluster_name = "advanced"
      flow_logs.generate_flow_logs(
          cluster_name, self.cluster_dict, self.config
      )
  
      expected = {
          "module": {
              "flow_logs_advanced": {
                  "source": "./modules/tf_flow_logs",
                  "prefix": "unit-test",
                  "cluster": "advanced",
                  "cloudwatch_logs_destination_arn": (
                      "${module.cloudwatch_logs_destination_advanced_us-west-1."
                      "cloudwatch_logs_destination_arn}"
                  ),
                  "vpcs": ["vpc-id-1", "vpc-id-2"],
              },
              "cloudwatch_logs_destination_advanced": {
                  "source": "./modules/tf_cloudwatch_logs_destination",
                  "prefix": "unit-test",
                  "cluster": "advanced",
                  "regions": ["us-west-1"],
                  "destination_kinesis_stream_arn": "${module.kinesis_advanced.arn}",
              },
              "cloudwatch_logs_destination_advanced_us-west-1": {
                  "source": "./modules/tf_cloudwatch_logs_destination/modules/destination",
                  "prefix": "unit-test",
                  "cluster": "advanced",
                  "account_ids": ["12345678910"],
                  "destination_kinesis_stream_arn": "${module.kinesis_advanced.arn}",
                  "cloudwatch_logs_subscription_role_arn": (
                      "${module.cloudwatch_logs_destination_advanced."
                      "cloudwatch_logs_subscription_role_arn}"
                  ),
                  "providers": {"aws": "aws.us-west-1"},
              },
          }
      }
  
      assert_equal(self.cluster_dict, expected)
  
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 8 for calling the TestTerraformGenerate obj's underlying member method code with example usage: obj.test_generate_flow_logs() without return types