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

Cosmetic edits for messages_tests.

This commit is contained in:
Tim Graham
2017-01-05 09:23:39 -05:00
parent 944610a86c
commit 0793182694
8 changed files with 45 additions and 86 deletions

View File

@@ -4,15 +4,14 @@ from django import http
from django.contrib.messages.middleware import MessageMiddleware
class MiddlewareTest(unittest.TestCase):
class MiddlewareTests(unittest.TestCase):
def setUp(self):
self.middleware = MessageMiddleware()
def test_response_without_messages(self):
"""
Makes sure that the response middleware is tolerant of messages not
existing on request.
MessageMiddleware is tolerant of messages not existing on request.
"""
request = http.HttpRequest()
response = http.HttpResponse()