def METHOD_NAME(motor):
    st = motor.set(0)
    while not st.done:
        continue
    collector = []
    def collect(fraction, **kwargs):
        collector.append(fraction)
    def callback(status):
        ev.set()
    st = motor.set(1)
    st.watch(collect)
    ev = threading.Event()
    st.add_callback(callback)
    ev.wait()
    assert collector
    assert collector[-1] == 0.0
    assert len(collector) > 1