':param cookie: A Cookie object as defined in core.data.dc.cookie,
or a string.'

def set_cookie(self, cookie):

    if isinstance(cookie, Cookie):
        self._cookie = cookie
    elif isinstance(cookie, basestring):
        self._cookie = Cookie(cookie)
    elif (cookie is None):
        self._cookie = Cookie()
    else:
        fmt = '[FuzzableRequest    error]    set_cookie    received:    "%s":    "%s".'
        error_str = (fmt % (type(cookie), repr(cookie)))
        om.out.error(error_str)
        raise BaseFrameworkException(error_str)
