

def test_page_list_render_using_arrows(self):
    page_list_callable = 'endless_pagination.tests.test_models.page_list_callable_arrows'
    with local_settings(PAGE_LIST_CALLABLE=self):
        rendered = utils.text(self.pages)
    self.assertEqual(7, rendered.count('<a href'))
    self.assertIn(settings.FIRST_LABEL, rendered)
    self.assertIn(settings.LAST_LABEL, rendered)

dataset/ETHPy150Open frankban/django-endless-pagination/endless_pagination/tests/test_models.py PageListTest.test_page_list_render_using_arrows/VarMisuse@19/53 `page_list_callable`->`self`