summaryrefslogtreecommitdiff
path: root/tests/requests/tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/requests/tests.py')
-rw-r--r--tests/requests/tests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/requests/tests.py b/tests/requests/tests.py
index 22b3021d1f..2065ba7e6d 100644
--- a/tests/requests/tests.py
+++ b/tests/requests/tests.py
@@ -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):