'L{cookielib.CookieJar.add_cookie_header} adds a cookie header to a fake
urllib2 request instance.'

def test_sendCookie(self):

    (jar, (request, response)) = self.makeCookieJar()
    self.assertIdentical(request.get_header('Cookie', None), None)
    jar.add_cookie_header(request)
    self.assertEqual(request.get_header('Cookie', None), 'foo=1;    bar=2')
