def test_next(self):
        self.assertEqual(self.pager(self.qs(25), 20, 1).next, 2)
If there is a next page, .next is its number.
dataset/ETHPy150Open mozilla/moztrap/tests/view/lists/test_pagination.py/TestPager.test_next