def METHOD_NAME(schedule):
    """
    verify that scheduled job does not run
    and returns the right error
    """
    job = {
        "schedule": {
            "job1": {
                "function": "test.ping",
                "hours": 1,
                "skip_during_range": ["start", "1:00pm", "end", "12:00pm"],
            }
        }
    }
    # Add the job to the scheduler
    schedule.opts.update(job)
    # eval at 3:00pm to prime, simulate minion start up.
    run_time = dateutil.parser.parse("11/29/2017 3:00pm")
    schedule.eval(now=run_time)
    ret = schedule.job_status("job1")
    # eval at 4:00pm to prime
    run_time = dateutil.parser.parse("11/29/2017 4:00pm")
    schedule.eval(now=run_time)
    ret = schedule.job_status("job1")
    _expected = (
        "schedule.handle_func: Invalid, "
        "range must be specified as a "
        "dictionary. Ignoring job job1."
    )
    assert ret["_error"] == _expected