def test_display_pages_long_near_other_end(self):
        p = self.pager(self.qs(120), 10, 9)
        self.assertEqual(
            list(p.display_pages()), [1, 2, None, 7, 8, 9, 10, 11, 12])
Overlap between near-current and near-end is not a problem.
dataset/ETHPy150Open mozilla/moztrap/tests/view/lists/test_pagination.py/TestPager.test_display_pages_long_near_other_end