class_docstr: Test class for the Terraform Cluster Generating
class_docstr_tok: ["Test","class","for","the","Terraform","Cluster","Generating"]
docstr: CLI - Terraform Generate CloudWatch Events
docstr_tok: ["CLI","-","Terraform","Generate","CloudWatch","Events"]
code: def test_generate_cloudwatch_events(self):
      """CLI - Terraform Generate CloudWatch Events"""
      cloudwatch_events.generate_cloudwatch_events(
          "advanced", self.cluster_dict, self.config
      )
  
      expected = {
          "cloudwatch_events_advanced": {
              "source": "./modules/tf_cloudwatch_events",
              "prefix": "unit-test",
              "cluster": "advanced",
              "kinesis_arn": "${module.kinesis_advanced.arn}",
              "event_pattern": '{"account": ["12345678910"]}',
          },
      }
  
      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 14 for calling the TestTerraformGenerate obj's underlying member method code with example usage: obj.test_generate_cloudwatch_events() without return types