diff options
Diffstat (limited to 'django/test/client.py')
| -rw-r--r-- | django/test/client.py | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/django/test/client.py b/django/test/client.py index a19970f02e..d845fe76a7 100644 --- a/django/test/client.py +++ b/django/test/client.py @@ -1,9 +1,9 @@ from __future__ import unicode_literals -import sys +import mimetypes import os import re -import mimetypes +import sys from copy import copy from importlib import import_module from io import BytesIO @@ -12,20 +12,21 @@ from django.apps import apps from django.conf import settings from django.core import urlresolvers from django.core.handlers.base import BaseHandler -from django.core.handlers.wsgi import WSGIRequest, ISO_8859_1, UTF_8 -from django.core.signals import (request_started, request_finished, - got_request_exception) +from django.core.handlers.wsgi import ISO_8859_1, UTF_8, WSGIRequest +from django.core.signals import ( + got_request_exception, request_finished, request_started, +) from django.db import close_old_connections -from django.http import SimpleCookie, HttpRequest, QueryDict +from django.http import HttpRequest, QueryDict, SimpleCookie from django.template import TemplateDoesNotExist from django.test import signals -from django.utils.functional import curry, SimpleLazyObject +from django.test.utils import ContextList +from django.utils import six from django.utils.encoding import force_bytes, force_str, uri_to_iri +from django.utils.functional import SimpleLazyObject, curry from django.utils.http import urlencode from django.utils.itercompat import is_iterable -from django.utils import six from django.utils.six.moves.urllib.parse import urlparse, urlsplit -from django.test.utils import ContextList __all__ = ('Client', 'RedirectCycleError', 'RequestFactory', 'encode_file', 'encode_multipart') |
