'Makes sure that the threads which are living in my process are the
ones that I want.'

def _assert_thread_names(self):

    threads = [t for t in threading.enumerate()]
    thread_names = [t.name for t in threads]
    thread_names_set = set(thread_names)
    expected_names = {'MainThread', 'SQLiteExecutor', 'OutputManager', 'QueueFeederThread'}
    self.assertEqual(thread_names_set, expected_names)
