def paginated_function(page_size=8, page_offset=0):
            """Returns two pages of size page_size, then an empty page."""
            if page_offset > 3 * page_size:
                return []
            elif page_offset > 2 * page_size:
                return page_size * ["a"]
            else:
                return page_size * ["a"]
Returns two pages of size page_size, then an empty page.
tests/api/test_utils.py