'L{http.Request.setCookie} adds a new cookie to be sent with the
response. L{unicode} arguments are encoded using UTF-8.'

def test_addCookieWithAllArgumentsUnicode(self):

    expectedCookieValue = 'foo=bar;    Expires=Fri,    31    Dec    9999    23:59:59    GMT;    Domain=.example.com;    Path=/;    Max-Age=31536000;    Comment=test;    Secure;    HttpOnly'
    self._checkCookie(expectedCookieValue, u'foo', u'bar', expires=u'Fri,    31    Dec    9999    23:59:59    GMT', domain=u'.example.com', path=u'/', max_age=u'31536000', comment=u'test', secure=True, httpOnly=True)
