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:
committed by
Tim Graham
parent
6b00af5014
commit
5f3a689f71
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user