def METHOD_NAME(schedule):
    """
    verify that scheduled job is not not and returns the right error string
    """
    run_time = dateutil.parser.parse("11/29/2017 2:30pm")
    job_name1 = "skip_during_range_invalid_datestring1"
    job1 = {
        "schedule": {
            job_name1: {
                "function": "test.ping",
                "hours": "1",
                "_next_fire_time": run_time,
                "skip_during_range": {"start": "25pm", "end": "3pm"},
            }
        }
    }
    job_name2 = "skip_during_range_invalid_datestring2"
    job2 = {
        "schedule": {
            job_name2: {
                "function": "test.ping",
                "hours": "1",
                "_next_fire_time": run_time,
                "skip_during_range": {"start": "2pm", "end": "25pm"},
            }
        }
    }
    # Add job1 to schedule
    schedule.opts.update(job1)
    # Eval
    schedule.eval(now=run_time)
    # Check the first job
    ret = schedule.job_status(job_name1)
    _expected = (
        "Invalid date string for start in skip_during_range. Ignoring job {}."
    ).format(job_name1)
    assert ret["_error"] == _expected
    # Clear out schedule
    schedule.opts["schedule"] = {}
    # Add job2 to schedule
    schedule.opts.update(job2)
    # Eval
    schedule.eval(now=run_time)
    # Check the second job
    ret = schedule.job_status(job_name2)
    _expected = (
        "Invalid date string for end in skip_during_range. Ignoring job {}."
    ).format(job_name2)
    assert ret["_error"] == _expected