'Add a cookie to a cookie jar.'

def addCookies(self, cookieJar, uri, cookies):

    response = client._FakeUrllib2Response(client.Response(('HTTP', 1, 1), 200, 'OK', client.Headers({'Set-Cookie': cookies}), None))
    request = client._FakeUrllib2Request(uri)
    cookieJar.extract_cookies(response, request)
    return (request, response)
