MCPcopy
hub / github.com/encode/httpx / test_unicode

Method test_unicode

tests/test_multipart.py:443–448  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

441
442class TestHeaderParamHTML5Formatting:
443 def test_unicode(self):
444 filename = "n\u00e4me"
445 expected = b'filename="n\xc3\xa4me"'
446 files = {"upload": (filename, b"<file content>")}
447 request = httpx.Request("GET", "https://www.example.com", files=files)
448 assert expected in request.read()
449
450 def test_ascii(self):
451 filename = "name"

Callers

nothing calls this directly

Calls 1

readMethod · 0.95

Tested by

no test coverage detected