def METHOD_NAME(mode, flag, expected):
    params = {
        "-c": "control_port",
        "-o": "output_port",
        "-s": "server_port",
        "-l": "logging_port",
    }
    args = cli.parse_cli_args([mode, flag, expected])
    assert vars(args)[params[flag]] == expected