Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

The tests added in r9184 were altering the test environment in bad wa…

…ys. Fixed

this with proper setUp() and tearDown() methods.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@9200 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit ce770aaecd1f3677c501ab41e5adbed8db44f109 1 parent 70b6c4c
Malcolm Tredinnick authored

Showing 1 changed file with 8 additions and 0 deletions. Show diff stats Hide diff stats

  1. 8  tests/regressiontests/middleware/tests.py
8  tests/regressiontests/middleware/tests.py
@@ -6,6 +6,14 @@
6 6
 from django.conf import settings
7 7
 
8 8
 class CommonMiddlewareTest(TestCase):
  9
+    def setUp(self):
  10
+        self.slash = settings.APPEND_SLASH
  11
+        self.www = settings.PREPEND_WWW
  12
+
  13
+    def tearDown(self):
  14
+        settings.APPEND_SLASH = self.slash
  15
+        settings.PREPEND_WWW = self.www
  16
+
9 17
     def _get_request(self, path):
10 18
         request = HttpRequest()
11 19
         request.META = {

0 notes on commit ce770aa

Please sign in to comment.
Something went wrong with that request. Please try again.