

def test_page_list_render(self):
    rendered = utils.text(self.pages)
    self.assertEqual(5, rendered.count('<a href'))
    self.assertIn(settings.PREVIOUS_LABEL, rendered)
    self.assertIn(settings.NEXT_LABEL, rendered)

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