summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul McMillan <Paul@McMillan.ws>2011-11-22 01:10:00 +0000
committerPaul McMillan <Paul@McMillan.ws>2011-11-22 01:10:00 +0000
commit02a1b9a93e2ec7cc3bb87f2d38529b36eca65701 (patch)
tree98eb0595746e08a042d567bf9bf6a47fee9c683e
parente13dc4905330dd2705d5b82420141b2fabab9a29 (diff)
Improved the test for #16847.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17141 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--django/contrib/sessions/tests.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/django/contrib/sessions/tests.py b/django/contrib/sessions/tests.py
index 9e23b5131f..afcba2c27f 100644
--- a/django/contrib/sessions/tests.py
+++ b/django/contrib/sessions/tests.py
@@ -379,8 +379,9 @@ class SessionMiddlewareTests(unittest.TestCase):
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):