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 Cross Account Region Map
docstr_tok: ["CLI","-","Terraform","Generate","CloudWatch","Events","Cross","Account","Region","Map"]
code: def test_generate_cwe_cross_acct_map_regions(self):
      """CLI - Terraform Generate CloudWatch Events Cross Account Region Map"""
      # pylint: disable=protected-access
      settings = {
          "accounts": {
              "123456789012": ["us-east-1"],
              "234567890123": ["us-east-1"],
          },
          "organizations": {"o-aabbccddee": ["us-west-1"]},
      }
  
      result = cloudwatch_events._map_regions(settings)
  
      expected = {
          "us-east-1": {
              "accounts": ["123456789012", "234567890123"],
          },
          "us-west-1": {"organizations": ["o-aabbccddee"]},
      }
  
      assert_equal(expected, result)
  
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 17 for calling the TestTerraformGenerate obj's underlying member method code with example usage: obj.test_generate_cwe_cross_acct_map_regions() without return types