

def test_paginated(self):
    page = DefaultPaginator(range(10), 10).page(1)
    pages = models.PageList(self.request, page, self.page_label)
    self.assertFalse(pages.paginated())
    self.assertTrue(self.pages.paginated())

dataset/ETHPy150Open frankban/django-endless-pagination/endless_pagination/tests/test_models.py PageListTest.test_paginated/original