def METHOD_NAME(self):
    doNextEvent = threading.Event()
    threadStartedEvent = threading.Event()
    thread1 = GetsThroughVoteThread(self._storage,
                                    doNextEvent, threadStartedEvent)
    thread1.start()
    threadStartedEvent.wait(10)
    self._storage.close()
    doNextEvent.set()
    thread1.join()
    self.assertEqual(thread1.gotValueError, 1)