Python 3.3 compatible update
authoryegle <me@yegle.net>
Sat, 29 Sep 2012 22:28:53 +0000 (18:28 -0400)
committeryegle <me@yegle.net>
Sat, 29 Sep 2012 22:28:53 +0000 (18:28 -0400)
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`.