def METHOD_NAME(self, mocked_init):
    log_debug_messages = ''
    def _log_debug(*args):
        nonlocal log_debug_messages
        log_debug_messages += args[0]
        if len(args) > 1:
            log_debug_messages = log_debug_messages % args[1:]
    raptor_master = Master(cfg=None)
    raptor_master._log = mock.Mock()
    raptor_master._log.debug.side_effect = _log_debug
    raptor_master._lock    = mt.Lock()
    raptor_master._term    = mt.Event()
    raptor_master._workers = {
        'w.0000': {'status': Master.NEW},
        'w.0001': {'status': Master.NEW}
    }
    def _set_workers_active(master_obj):
        while True:
            time.sleep(3)
            with master_obj._lock:
                for uid in master_obj._workers:
                    master_obj._workers[uid]['status'] = Master.ACTIVE
            break
    _thread = mt.Thread(target=_set_workers_active, args=(raptor_master,))
    _thread.daemon = True
    _thread.start()
    raptor_master.wait_workers()
    self.assertTrue(log_debug_messages.endswith('wait ok'))
    _thread.join()