Python 3.3 compatible update
authoryegle <me@yegle.net>
Sat, 29 Sep 2012 22:28:53 +0000 (18:28 -0400)
committerRadu Voicilas <radu.voicilas@gmail.com>
Mon, 8 Oct 2012 21:42:48 +0000 (00:42 +0300)
httplib.cookiejar.DefaultCookiePolicy changed its implementation of
set_ok_verifiability.

requests/cookies.py

index bd2d665..83f6bb6 100644 (file)
@@ -67,6 +67,10 @@ class MockRequest(object):
     def get_new_headers(self):
         return self._new_headers
 
+    def __getattr__(self, name):
+        if name == 'unverifiable':
+            return self.is_unverifiable()
+
 
 class MockResponse(object):
     """Wraps a `httplib.HTTPMessage` to mimic a `urllib.addinfourl`.