def METHOD_NAME(port_input, expected_range):
    parsed = ert_parser(
        None,
        [
            ENSEMBLE_EXPERIMENT_MODE,
            "--port-range",
            port_input,
            "path/to/config.ert",
        ],
    )
    assert parsed.port_range == expected_range