Author: PaulM
Date: 2011-11-21 17:10:00 -0800 (Mon, 21 Nov 2011)
New Revision: 17141

Modified:
   django/trunk/django/contrib/sessions/tests.py
Log:
Improved the test for #16847.


Modified: django/trunk/django/contrib/sessions/tests.py
===================================================================
--- django/trunk/django/contrib/sessions/tests.py       2011-11-22 01:05:14 UTC 
(rev 17140)
+++ django/trunk/django/contrib/sessions/tests.py       2011-11-22 01:10:00 UTC 
(rev 17141)
@@ -379,9 +379,10 @@
         if 'httponly' in settings.SESSION_COOKIE_NAME:
             self.assertFalse(
                response.cookies[settings.SESSION_COOKIE_NAME]['httponly'])
-            self.assertNotIn('httponly', 
-               str(response.cookies[settings.SESSION_COOKIE_NAME]['httponly']))
 
+        self.assertNotIn('httponly', 
+                         str(response.cookies[settings.SESSION_COOKIE_NAME]))
+
 class CookieSessionTests(SessionTestsMixin, TestCase):
 
     backend = CookieSession

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to