def METHOD_NAME(self):
    mock_cfg = Mock()
    with patch("samcli.cli.main.GlobalConfig", mock_cfg):
        runner = CliRunner()
        result = runner.invoke(cli, ["local", "generate-event", "s3", "put", "--debug"])
        self.assertEqual(result.exit_code, 0)