From 02a1b9a93e2ec7cc3bb87f2d38529b36eca65701 Mon Sep 17 00:00:00 2001 From: Paul McMillan Date: Tue, 22 Nov 2011 01:10:00 +0000 Subject: [PATCH] Improved the test for #16847. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17141 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/contrib/sessions/tests.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/django/contrib/sessions/tests.py b/django/contrib/sessions/tests.py index 9e23b5131f5..afcba2c27fa 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):