class documentation

class MockResponse(object):

View In Hierarchy

Wraps a httplib.HTTPMessage to mimic a urllib.addinfourl.

...what? Basically, expose the parsed HTTP headers from the server response the way cookielib expects to see them.

Method __init__ Make a MockResponse for cookielib to read.
Method getheaders Undocumented
Method info Undocumented
Instance Variable ​_headers Undocumented
def __init__(self, headers):
Make a MockResponse for cookielib to read.
Parameters
headersa httplib.HTTPMessage or analogous carrying the headers
def getheaders(self, name):

Undocumented

def info(self):

Undocumented

_headers =

Undocumented