mirror of
https://github.com/kennethreitz/requests3.git
synced 2026-06-05 23:10:16 +00:00
Python 3.3 compatible update
httplib.cookiejar.DefaultCookiePolicy changed its implementation of set_ok_verifiability.
This commit is contained in:
@@ -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`.
|
||||
|
||||
Reference in New Issue
Block a user