async def METHOD_NAME():
    async_file = trio.wrap_file(io.StringIO("test\nfoo\nbar"))
    expected = list(async_file.wrapped)
    result = []
    async_file.wrapped.seek(0)
    async for line in async_file:
        result.append(line)
    assert result == expected