

def test_url(self):
    for (num, page) in enumerate(list(self.pages)[1:]):
        expected = self.get_url_for_page((num + 2))
        self.assertEqual(expected, page.url)

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