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

Method test_ascii

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

Source from the content-addressed store, hash-verified

448 assert expected in request.read()
449
450 def test_ascii(self):
451 filename = "name"
452 expected = b'filename="name"'
453 files = {"upload": (filename, b"<file content>")}
454 request = httpx.Request("GET", "https://www.example.com", files=files)
455 assert expected in request.read()
456
457 def test_unicode_escape(self):
458 filename = "hello\\world\u0022"

Callers

nothing calls this directly

Calls 1

readMethod · 0.95

Tested by

no test coverage detected