class_docstr: Test class for the Terraform Cluster Generating
class_docstr_tok: ["Test","class","for","the","Terraform","Cluster","Generating"]
docstr: CLI - Terraform Generate CloudWatch Destinations
docstr_tok: ["CLI","-","Terraform","Generate","CloudWatch","Destinations"]
code: def test_generate_cloudwatch_destinations(self):
      """CLI - Terraform Generate CloudWatch Destinations"""
      cloudwatch_destinations.generate_cloudwatch_destinations(
          "advanced", self.cluster_dict, self.config
      )
  
      expected = {
          "cloudwatch_logs_destination_advanced": {
              "source": "./modules/tf_cloudwatch_logs_destination",
              "prefix": "unit-test",
              "cluster": "advanced",
              "regions": ["us-east-2", "us-west-2"],
              "destination_kinesis_stream_arn": "${module.kinesis_advanced.arn}",
          },
          "cloudwatch_logs_destination_advanced_us-east-2": {
              "source": "./modules/tf_cloudwatch_logs_destination/modules/destination",
              "prefix": "unit-test",
              "cluster": "advanced",
              "account_ids": ["123456789012"],
              "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-east-2"},
          },
          "cloudwatch_logs_destination_advanced_us-west-2": {
              "source": "./modules/tf_cloudwatch_logs_destination/modules/destination",
              "prefix": "unit-test",
              "cluster": "advanced",
              "account_ids": ["123456789012"],
              "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-2"},
          },
      }
  
      assert_equal(expected, self.cluster_dict["module"])
  
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 13 for calling the TestTerraformGenerate obj's underlying member method code with example usage: obj.test_generate_cloudwatch_destinations() without return types