MCPcopy
hub / github.com/psf/requests / test_unicode_method_name

Method test_unicode_method_name

tests/test_requests.py:1122–1130  ·  view source on GitHub ↗
(self, httpbin)

Source from the content-addressed store, hash-verified

1120 assert b"name=\"b'stuff'\"" not in prep.body
1121
1122 def test_unicode_method_name(self, httpbin):
1123 with open(__file__, "rb") as f:
1124 files = {"file": f}
1125 r = requests.request(
1126 method="POST",
1127 url=httpbin("post"),
1128 files=files,
1129 )
1130 assert r.status_code == 200
1131
1132 def test_unicode_method_name_with_request_object(self, httpbin):
1133 s = requests.Session()

Callers

nothing calls this directly

Calls 2

httpbinFunction · 0.85
requestMethod · 0.80

Tested by

no test coverage detected