def test_get():
-> pool = WorkerPool()
def f():
return 42
reply = pool.dispatch(f)
result = reply.get()
assert result == 42