

def test_no_next(self):
    num_pages = self.paginator.num_pages
    pages = models.PageList(self.request, self.paginator.page(num_pages), self.page_label)
    self.assertEqual('', pages.next())

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