X-Git-Url: https://git.mdrn.pl/django-pagination.git/blobdiff_plain/abf535d21fd19b257e5d6fecfd60e470cc12de7f..c6ab102c7d35bd0a3096f7afc0fc403e5feec9a7:/fnp_django_pagination/tests/test_main.py?ds=inline diff --git a/fnp_django_pagination/tests/test_main.py b/fnp_django_pagination/tests/test_main.py index 8885c16..d6fe6cc 100644 --- a/fnp_django_pagination/tests/test_main.py +++ b/fnp_django_pagination/tests/test_main.py @@ -31,12 +31,7 @@ from django.core.paginator import Paginator from django.http import HttpRequest as DjangoHttpRequest from django.template import Template, Context - -try: - from django.test import SimpleTestCase -except ImportError: # Django 1.2 compatible - from django.test import TestCase as SimpleTestCase - +from django.test import SimpleTestCase from fnp_django_pagination.paginator import InfinitePaginator, FinitePaginator from fnp_django_pagination.templatetags.pagination_tags import paginate from fnp_django_pagination.middleware import PaginationMiddleware @@ -393,7 +388,7 @@ class MiddlewareTestCase(SimpleTestCase): Test middleware """ def test_get_page_in_request(self): - middleware = PaginationMiddleware() + middleware = PaginationMiddleware(lambda: None) request = DjangoHttpRequest() middleware.process_request(request) self.assertEqual(request.page(''), 1)