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

Method test_basic_building

tests/test_requests.py:115–122  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

113 requests.get(url)
114
115 def test_basic_building(self):
116 req = requests.Request()
117 req.url = "http://kennethreitz.org/"
118 req.data = {"life": "42"}
119
120 pr = req.prepare()
121 assert pr.url == req.url
122 assert pr.body == "life=42"
123
124 @pytest.mark.parametrize("method", ("GET", "HEAD"))
125 def test_no_content_length(self, httpbin, method):

Callers

nothing calls this directly

Calls 1

prepareMethod · 0.95

Tested by

no test coverage detected