def test_path(self):
        # Ensure the path of each page is correctly generated.
        for num, page in enumerate(list(self.pages)[1:]):
            expected = self.get_path_for_page(num + 2)
            self.assertEqual(expected, page.path)
dataset/ETHPy150Open frankban/django-endless-pagination/endless_pagination/tests/test_models.py/PageListTest.test_path/original