def test_pagination_4() -> None: p = Pagination(10, 10, 100) pages = list(p.iter_pages()) assert pages == [1, 2, None, 8, 9, 10] assert p.has_prev assert not p.has_next assert p.prev == 9 assert p.next is None
def test_pagination_3() -> None: p = Pagination(1, 10, 100) pages = list(p.iter_pages()) assert pages == [1, 2, 3, 4, 5, None, 9, 10] assert not p.has_prev assert p.has_next assert p.prev is None assert p.next == 2
def test_pagination_1() -> None: p = Pagination(1, 10, 10) pages = list(p.iter_pages()) assert pages == [1] assert not p.has_prev assert not p.has_next assert p.prev is None assert p.next is None
def test1(self): p = Pagination(1, 10, 10) l = list(p.iter_pages()) self.assertEquals([1], l) assert not p.has_prev assert not p.has_next assert p.prev is None assert p.next is None
def test_pagination_2(): p = Pagination(1, 10, 20) l = list(p.iter_pages()) assert l == [1, 2] assert not p.has_prev assert p.has_next assert p.prev is None assert p.next == 2
def test4(self): p = Pagination(10, 10, 100) l = list(p.iter_pages()) self.assertEquals([1, 2, None, 8, 9, 10], l) assert p.has_prev assert not p.has_next assert p.prev == 9 assert p.next is None
def test3(self): p = Pagination(1, 10, 100) l = list(p.iter_pages()) self.assertEquals([1, 2, 3, 4, 5, None, 9, 10], l) assert not p.has_prev assert p.has_next assert p.prev is None assert p.next == 2
def test_pagination_1(): p = Pagination(1, 10, 10) l = list(p.iter_pages()) assert l == [1] assert not p.has_prev assert not p.has_next assert p.prev is None assert p.next is None
def test_pagination_4(): p = Pagination(10, 10, 100) l = list(p.iter_pages()) assert l == [1, 2, None, 8, 9, 10] assert p.has_prev assert not p.has_next assert p.prev == 9 assert p.next is None
def test_pagination_3(): p = Pagination(1, 10, 100) l = list(p.iter_pages()) assert l == [1, 2, 3, 4, 5, None, 9, 10] assert not p.has_prev assert p.has_next assert p.prev is None assert p.next == 2