1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Imported django.http classes instead of django.http.

This commit is contained in:
Asif Saifuddin Auvi
2017-02-25 12:48:20 +06:00
committed by Tim Graham
parent 6b00af5014
commit 5f3a689f71
13 changed files with 69 additions and 58 deletions

View File

@@ -1,7 +1,7 @@
import unittest
from django import http
from django.contrib.messages.middleware import MessageMiddleware
from django.http import HttpRequest, HttpResponse
class MiddlewareTests(unittest.TestCase):
@@ -13,6 +13,6 @@ class MiddlewareTests(unittest.TestCase):
"""
MessageMiddleware is tolerant of messages not existing on request.
"""
request = http.HttpRequest()
response = http.HttpResponse()
request = HttpRequest()
response = HttpResponse()
self.middleware.process_response(request, response)