MCPcopy Index your code
hub / github.com/python/cpython / test_request_length

Method test_request_length

Lib/test/test_wsgiref.py:137–140  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

135 )
136
137 def test_request_length(self):
138 out, err = run_amock(data=b"GET " + (b"x" * 65537) + b" HTTP/1.0\n\n")
139 self.assertEqual(out.splitlines()[0],
140 b"HTTP/1.0 414 URI Too Long")
141
142 def test_validated_hello(self):
143 out, err = run_amock(validator(hello_app))

Callers

nothing calls this directly

Calls 3

run_amockFunction · 0.85
assertEqualMethod · 0.45
splitlinesMethod · 0.45

Tested by

no test coverage detected