'Create a worker with fake threads.'

def setUp(self):

    self.fakeThreads = []
    self.fakeQueue = FakeQueue()
    def startThread(target):
        newThread = FakeThread(target=target)
        newThread.start()
        self.fakeThreads.append(newThread)
        return newThread
    self.worker = ThreadWorker(startThread, self.fakeQueue)
