MCPcopy
hub / github.com/encode/starlette / test_user_safe_decode_helper

Function test_user_safe_decode_helper

tests/test_formparsers.py:616–618  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

614
615
616def test_user_safe_decode_helper() -> None:
617 result = _user_safe_decode(b"\xc4\x99\xc5\xbc\xc4\x87", "utf-8")
618 assert result == "ężć"
619
620
621def test_user_safe_decode_ignores_wrong_charset() -> None:

Callers

nothing calls this directly

Calls 1

_user_safe_decodeFunction · 0.90

Tested by

no test coverage detected