def METHOD_NAME(self):
    class Object(object):
        def __init__(self):
            self.executor = futures.thread.ThreadPoolExecutor(1)
        @run_on_executor()
        def f(self):
            return 42
    o = Object()
    answer = yield o.f()
    self.assertEqual(answer, 42)