X-Git-Url: https://git.mdrn.pl/django-pagination.git/blobdiff_plain/c6d9f1ade306811fbda6016aa902749caced9b7c..1dd45d4cf95cf93d4d55fb5d15f81543ff5b4eed:/linaro_django_pagination/tests.py diff --git a/linaro_django_pagination/tests.py b/linaro_django_pagination/tests.py index 267b77d..d31c4ed 100644 --- a/linaro_django_pagination/tests.py +++ b/linaro_django_pagination/tests.py @@ -32,6 +32,10 @@ >>> paginate({'paginator': p, 'page_obj': p.page(1)})['pages'] [1, 2, 3, 4, None, 7, 8, 9, 10] +>>> p = Paginator(range(21), 2, 1) +>>> paginate({'paginator': p, 'page_obj': p.page(1)})['pages'] +[1, 2, 3, 4, None, 7, 8, 9, 10] + >>> t = Template("{% load pagination_tags %}{% autopaginate var 2 %}{% paginate %}") >>> from django.http import HttpRequest as DjangoHttpRequest