func (r *Response) AssertCookie(key string) string {
	restore := r.assert.IncrCallstackOffset()
	defer restore()
	r.assert.NotEmpty(r.Cookies, "response contains no cookies")
	value, ok := r.Cookies[key]
	r.assert.True(ok, "cookie '"+key+"' not found")
	return value
}
// AssertCookie checks if a cookie exists and retrieves it.
AssertCookie checks if a cookie exists and retrieves it.
// AssertCookie checks if a cookie exists and retrieves it .
func (r *Response) AssertCookie(key string) string {
	restore := r.assert.IncrCallstackOffset()
	defer restore()
	r.assert.NotEmpty(r.Cookies, "response contains no cookies")
	value, ok := r.Cookies[key]
	r.assert.True(ok, "cookie '"+key+"' not found")
	return value
}
func ( r * Response ) AssertCookie ( key string ) string { restore := r . assert . IncrCallstackOffset ( ) defer restore ( ) r . assert . NotEmpty ( r . Cookies , " " ) value , ok := r . Cookies [ key ] r . assert . True ( ok , " " + key + " " ) return value }
AssertCookie checks if a cookie exists and retrieves it.
AssertCookie checks if a cookie exists and retrieves it .