def thread_test(method):
  @functools.wraps(method)
  def Wrapper(self):
    thread = TestThread(partial(method, self),
                        partial(self.io_loop.add_callback, self.stop))
    thread.start()
    self.wait()
    thread.MaybeRaise()

  return Wrapper
Execute state command for return value.
dataset/ETHPy150Open viewfinderco/viewfinder/backend/base/testing.py/thread_test--crossover with--dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/components/switch/command_line.py/CommandSwitch._query_state_value