def test_previous(self):
        # Ensure the correct previous page is returned.
        previous_page = self.pages.previous()
        self.assertEqual(self.current_number - 1, previous_page.number)
dataset/ETHPy150Open frankban/django-endless-pagination/endless_pagination/tests/test_models.py/PageListTest.test_previous/original