Skip to content
Myr

fix test for 2.6's unittest

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Kenneth Reitz · committed by Kenneth Reitz · parent 4cf31b0 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • tests:+1 added−1 removed

1 file+1 added−1 removed

modified:tests/test_cookies.py+1 added-1 removed
105 unmodified lines
106 """Test that cookies are not persisted when configured accordingly."""107108 # Check the case when no cookie is passed as part of the request and the one in response is ignored109 cookies = requests.get(httpbin('cookies', 'set', 'key', 'value'), store_cookies = False).cookies110 self.assertIsNone(cookies.get("key"))110 self.assertEqual(cookies.get("key"), None)111112 # Test that the cookies passed while making the request still gets used and is available in response object.113 # only the ones received from server is not saved114 cookies_2 = requests.get(httpbin('cookies', 'set', 'key', 'value'), store_cookies = False,\
114 unmodified lines