Skip to content
Myr

Change the None check from self.assertIsNone to python style None Check, as build was failing

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

authored by Arup Malakar · committed by Arup Malakar · parent b286733 · 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
108 unmodified lines
109 config = {'store_cookies' : False}110111 # Check the case when no cookie is passed as part of the request and the one in response is ignored112 cookies = requests.get(httpbin('cookies', 'set', 'key', 'value'), config = config).cookies113 self.assertIsNone(cookies.get("key"))113 self.assertTrue(cookies.get("key") is None)114115 # Test that the cookies passed while making the request still gets used and is available in response object.116 # only the ones received from server is not saved117 cookies_2 = requests.get(httpbin('cookies', 'set', 'key', 'value'), config = config,\
146 unmodified lines