def METHOD_NAME(self):
    @gen.coroutine
    def f():
        event_loop = asyncio.get_event_loop()
        x = yield from event_loop.run_in_executor(None, lambda: 42)
        return x
    result = yield f()
    self.assertEqual(result, 42)