def enqueue_and_wait(self, command, data, timeout=None): command([data]) if self._raise_error: raise SchedulerMux.Error("expected")
def error_command(cls, data): raise SchedulerMux.Error('expected')