def METHOD_NAME(self, dispatcher):
    scheduler, thread = self.create_and_start(dispatcher)
    task = DummyTask()
    invocation_time = time.time() + 0.2
    scheduler.schedule(task, start=invocation_time)
    assert poll_condition(lambda: len(task.invocations) >= 1, timeout=5)
    scheduler.close()
    thread.join(5)
    assert len(task.invocations) == 1
    assert task.invocations[0][0] == 1
    assert task.invocations[0][1] == pytest.approx(invocation_time, 0.1)