def METHOD_NAME(param, input_offset_parser):
    input_offset, expected_error_message = param
    with pytest.raises(ValueError) as e:
        input_offset_parser.parse_offset_to_timedelta(input_offset)
    assert str(e.value) == expected_error_message