def METHOD_NAME(monkeypatch, input_path):
    monkeypatch.setattr(
        ert.__main__, "valid_file", Mock(side_effect=lambda x: input_path)
    )
    parsed = ert_parser(None, [TEST_RUN_MODE, input_path])
    assert parsed.config == input_path