def METHOD_NAME():
    """Check str formatting of list."""
    source_items = [
        {"name": "a"},
        {"name": "b"},
        {"name": "c"},
        {"name": "d"},
        {"name": "e"},
        {"name": "f"},
    ]
    start = 2
    limit = 2
    with mock.patch("sasctl.core.request") as req:
        obj = RestObj(
            items=source_items[:2],
            count=len(source_items),
            links=[
                {"rel": "next", "href": "/moaritems?start=%d&limit=%d" % (start, limit)}
            ],
        )
        def side_effect(_, link, **kwargs):
            if "start=2" in link:
                result = source_items[1 : 1 + limit]
            elif "start=4" in link:
                result = source_items[3 : 3 + limit]
            return RestObj(items=result)
        req.side_effect = side_effect
        l = PagedList(obj)
        for i in range(len(source_items)):
            # Force access of each item to ensure it's downloaded
            _ = l[i]
            if i < len(source_items) - 1:
                # Ellipses should indicate unfetched results unless we're
                # at the end of the list
                assert str(l).endswith(", ...]")
            else:
                assert not str(l).endswith(", ...]")