'L{ThreadWorker} calls its C{createThread} callable to create a thread,
its C{createQueue} callable to create a queue, and then the thread\'s
target pulls work from that queue.'

def test_startsThreadAndPerformsWork(self):

    self.assertEqual(len(self.fakeThreads), 1)
    self.assertEqual(self.fakeThreads[0].started, True)
    def doIt():
        doIt.done = True
    doIt.done = False
    self.worker.do(doIt)
    self.assertEqual(doIt.done, False)
    self.assertRaises(FakeQueueEmpty, self.fakeThreads[0].target)
    self.assertEqual(doIt.done, True)
