'Test that a coroutine returning an awaited deferred value is
substituted with that value when flattened.'

def test_serializeCoroutineWithAwait(self):

    from textwrap import dedent
    namespace = dict(succeed=succeed)
    exec dedent('\n                                                async    def    coro(x):\n                                                                return    await    succeed(x)\n                                                ') in namespace
    coro = namespace['coro']
    return self.assertFlattensTo(coro('four'), 'four')
