def METHOD_NAME(self):
    def gen():
        yield from ()
        return 'spam'
    @types.coroutine
    def func():
        return gen()
    async def coro():
        wrapper = func()
        self.assertIsInstance(wrapper, types._GeneratorWrapper)
        return await wrapper
    data = self.loop.run_until_complete(coro())
    self.assertEqual(data, 'spam')