mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #23620 -- Used more specific assertions in the Django test suite.
This commit is contained in:
committed by
Tim Graham
parent
c0c78f1b70
commit
f7969b0920
@@ -204,7 +204,7 @@ class RequestsTests(SimpleTestCase):
|
||||
example_cookie = response.cookies['example']
|
||||
# A compat cookie may be in use -- check that it has worked
|
||||
# both as an output string, and using the cookie attributes
|
||||
self.assertTrue('; httponly' in str(example_cookie))
|
||||
self.assertIn('; httponly', str(example_cookie))
|
||||
self.assertTrue(example_cookie['httponly'])
|
||||
|
||||
def test_unicode_cookie(self):
|
||||
|
||||
Reference in New Issue
Block a user