From: Arup Malakar Date: Wed, 23 May 2012 21:25:54 +0000 (-0700) Subject: Change the None check from self.assertIsNone to python style None Check, as build... X-Git-Tag: v0.13.0~9^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4a309796225cfae96cf8473c8d70b5c71080011c;p=services%2Fpython-requests.git Change the None check from self.assertIsNone to python style None Check, as build was failing --- diff --git a/tests/test_cookies.py b/tests/test_cookies.py index 60acdd8..c6f71b4 100755 --- a/tests/test_cookies.py +++ b/tests/test_cookies.py @@ -110,7 +110,7 @@ class CookieTests(TestBaseMixin, unittest.TestCase): # Check the case when no cookie is passed as part of the request and the one in response is ignored cookies = requests.get(httpbin('cookies', 'set', 'key', 'value'), config = config).cookies - self.assertIsNone(cookies.get("key")) + self.assertTrue(cookies.get("key") is None) # Test that the cookies passed while making the request still gets used and is available in response object. # only the ones received from server is not saved