Browse files

Improved the test for #16847.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@17141 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent e13dc49 commit 02a1b9a93e2ec7cc3bb87f2d38529b36eca65701 @PaulMcMillan PaulMcMillan committed Nov 22, 2011
Showing with 3 additions and 2 deletions.
  1. +3 −2 django/contrib/sessions/tests.py
View
5 django/contrib/sessions/tests.py
@@ -379,8 +379,9 @@ def test_no_httponly_session_cookie(self):
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):

0 comments on commit 02a1b9a

Please sign in to comment.