class_docstr: Test class for the Terraform Cluster Generating
class_docstr_tok: ["Test","class","for","the","Terraform","Cluster","Generating"]
docstr: CLI - Terraform Generate Global Lambda Settings, Optional Missing in Config
docstr_tok: ["CLI","-","Terraform","Generate","Global","Lambda","Settings",",","Optional","Missing","in","Config"]
code: def test_generate_optional_lambda_not_in_config(self, log_mock):
      "CLI - Terraform Generate Global Lambda Settings, Optional Missing in Config"
      fake_opt_conf_name = "fake_optional_conf_name"
      generate.generate_global_lambda_settings(
          config=self.config,
          conf_name=fake_opt_conf_name,
          generate_func="test_func",
          tf_tmp_file_name="test_tf_tmp_file_path",
          required=False,
      )
  
      log_mock.assert_called_with(
          "Optional configuration missing in lambda.json, skipping: %s",
          fake_opt_conf_name,
      )
  
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 25 for calling the TestTerraformGenerate obj's underlying member method code with example usage: obj.test_generate_optional_lambda_not_in_config(log_mock) without return types