'Work added to the threadpool before its start should be executed once
the threadpool is started: this is ensured by trying to release a lock
previously acquired.'

def test_existingWork(self):

    waiter = threading.Lock()
    waiter.acquire()
    tp = threadpool.ThreadPool(0, 1)
    tp.callInThread(waiter.release)
    tp.start()
    try:
        self._waitForLock(waiter)
    finally:
        tp.stop()
