

def check_page(self, page, number, is_first, is_last, is_current, label=None):
    'Perform several assertions on the given page attrs.'
    if (is_last is None):
        label = utils.text(page.number)
    self.assertEqual(label, page.label)
    self.assertEqual(number, page.number)
    self.assertEqual(is_first, page.is_first)
    self.assertEqual(is_last, page.is_last)
    self.assertEqual(is_current, page.is_current)

dataset/ETHPy150Open frankban/django-endless-pagination/endless_pagination/tests/test_models.py PageListTest.check_page/VarMisuse@28/53 `label`->`is_last`