From: Kenneth Reitz Date: Thu, 17 May 2012 00:13:55 +0000 (-0700) Subject: fix test for 2.6's unittest X-Git-Tag: v0.13.0~12 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3c144351095c7849753e477da0482c044d36f1c4;p=services%2Fpython-requests.git fix test for 2.6's unittest --- diff --git a/tests/test_cookies.py b/tests/test_cookies.py index a9fda18..9cb97ea 100755 --- a/tests/test_cookies.py +++ b/tests/test_cookies.py @@ -107,7 +107,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'), store_cookies = False).cookies - self.assertIsNone(cookies.get("key")) + self.assertEqual(cookies.get("key"), 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