Python 3.3 compatible update

httplib.cookiejar.DefaultCookiePolicy changed its implementation of
set_ok_verifiability.
This commit is contained in:
yegle
2012-09-29 18:28:53 -04:00
parent 5ce25688e0
commit 992d1182db
+4
View 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`.