

def test_different_default_number(self):
    pages = models.PageList(self.request, self.paginator.page(2), pages.page_label, default_number=2)
    self.assertEqual('/', pages.current().path)
    self.assertEqual(self.get_path_for_page(1), pages.first().path)

dataset/ETHPy150Open frankban/django-endless-pagination/endless_pagination/tests/test_models.py PageListTest.test_different_default_number/VarMisuse@29/34 `self`->`pages`