Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Improved the test for #16847.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@17141 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 02a1b9a93e2ec7cc3bb87f2d38529b36eca65701 1 parent e13dc49
Paul McMillan authored November 22, 2011

Showing 1 changed file with 3 additions and 2 deletions. Show diff stats Hide diff stats

  1. 5  django/contrib/sessions/tests.py
5  django/contrib/sessions/tests.py
@@ -379,8 +379,9 @@ def test_no_httponly_session_cookie(self):
379 379
         if 'httponly' in settings.SESSION_COOKIE_NAME:
380 380
             self.assertFalse(
381 381
                response.cookies[settings.SESSION_COOKIE_NAME]['httponly'])
382  
-            self.assertNotIn('httponly', 
383  
-               str(response.cookies[settings.SESSION_COOKIE_NAME]['httponly']))
  382
+
  383
+        self.assertNotIn('httponly', 
  384
+                         str(response.cookies[settings.SESSION_COOKIE_NAME]))
384 385
 
385 386
 class CookieSessionTests(SessionTestsMixin, TestCase):
386 387
 

0 notes on commit 02a1b9a

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