MCPcopy
hub / github.com/pallets/werkzeug / test_cookie_unicode_keys

Method test_cookie_unicode_keys

tests/test_http.py:553–558  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

551 assert cookies["foo"] == "\N{SNOWMAN}"
552
553 def test_cookie_unicode_keys(self):
554 # Yes, this is technically against the spec but happens
555 val = http.dump_cookie("fö", "fö")
556 assert val == _wsgi_encoding_dance('fö="f\\303\\266"; Path=/')
557 cookies = http.parse_cookie(val)
558 assert cookies["fö"] == "fö"
559
560 def test_cookie_unicode_parsing(self):
561 # This is submitted by Firefox if you set a Unicode cookie.

Callers

nothing calls this directly

Calls 1

_wsgi_encoding_danceFunction · 0.90

Tested by

no test coverage detected