def METHOD_NAME(self):
    class Handler(web.RequestHandler):
        async def get(self):
            await asyncio.sleep(0.01)
            self.write("ok\n")
    asyncio.run(self.run_handler(Handler))