Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 02a1b9a93e2ec7cc3bb87f2d38529b36eca65701 1 parent e13dc49
@PaulMcMillan PaulMcMillan authored
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):
Please sign in to comment.
Something went wrong with that request. Please try again.