def extract_cookies_to_jar(jar, request, response):
 req = MockRequest(request)
 res = MockResponse(response._original_response.msg)
 jar.extract_cookies(res, req)

def extract_cookies_to_jar ( jar , request , response ) : req = MockRequest ( request ) res = MockResponse ( response . _original_response . msg ) jar . extract_cookies ( res , req )
extract the cookies from the response into a cookiejar .