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
Decorator for tests which need to be run synchronously. Runs
dataset/ETHPy150Open viewfinderco/viewfinder/backend/base/testing.py/thread_test