def METHOD_NAME(self):
    mock_cfg = Mock()
    with patch("samcli.cli.main.GlobalConfig", mock_cfg):
        runner = CliRunner()
        for command in ["validate", "deploy"]:
            result = runner.invoke(cli, [command, "--region"])
            self.assertEqual(result.exit_code, 2)
            self.assertIn("Error: Option '--region' requires an argument", result.output)