def METHOD_NAME(db, app, add_battery_assets, is_path: bool):
    """
    Test if the custom scheduler is picked up when we assign it to a Sensor,
    and that its dummy values are saved.
    """
    scheduler_specs["module"] = make_module_descr(is_path)
    battery = add_battery_assets["Test battery"].sensors[0]
    battery.attributes["custom-scheduler"] = scheduler_specs
    tz = pytz.timezone("Europe/Amsterdam")
    start = tz.localize(datetime(2015, 1, 2))
    end = tz.localize(datetime(2015, 1, 3))
    resolution = timedelta(minutes=15)
    job = create_scheduling_job(
        sensor=battery,
        start=start,
        end=end,
        belief_time=start,
        resolution=resolution,
    )
    print("Job: %s" % job.id)
    work_on_rq(app.queues["scheduling"], exc_handler=exception_reporter)
    # make sure we saved the data source for later lookup
    redis_connection = app.queues["scheduling"].connection
    finished_job = Job.fetch(job.id, connection=redis_connection)
    assert finished_job.meta["data_source_info"]["model"] == scheduler_specs["class"]
    scheduler_source = DataSource.query.filter_by(
        type="scheduler",
        **finished_job.meta["data_source_info"],
    ).one_or_none()
    assert (
        scheduler_source is not None
    )  # Make sure the scheduler data source is now there
    power_values = (
        TimedBelief.query.filter(TimedBelief.sensor_id == battery.id)
        .filter(TimedBelief.source_id == scheduler_source.id)
        .all()
    )
    assert len(power_values) == 96
    # test for negative value as we schedule consumption
    assert all(
        [
            v.event_value == -1 * battery.get_attribute("capacity_in_mw")
            for v in power_values
        ]
    )