MCPcopy Index your code
hub / github.com/RustPython/RustPython / testHopByHop

Method testHopByHop

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

Source from the content-addressed store, hash-verified

434 self.checkFW("xyz"*50, 120, ["xyz"*40,"xyz"*10])
435
436 def testHopByHop(self):
437 for hop in (
438 "Connection Keep-Alive Proxy-Authenticate Proxy-Authorization "
439 "TE Trailers Transfer-Encoding Upgrade"
440 ).split():
441 for alt in hop, hop.title(), hop.upper(), hop.lower():
442 self.assertTrue(util.is_hop_by_hop(alt))
443
444 # Not comprehensive, just a few random header names
445 for hop in (
446 "Accept Cache-Control Date Pragma Trailer Via Warning"
447 ).split():
448 for alt in hop, hop.title(), hop.upper(), hop.lower():
449 self.assertFalse(util.is_hop_by_hop(alt))
450
451 @unittest.expectedFailure # TODO: RUSTPYTHON
452 def test_filewrapper_getitem_deprecation(self):

Callers

nothing calls this directly

Calls 6

assertTrueMethod · 0.80
assertFalseMethod · 0.80
splitMethod · 0.45
titleMethod · 0.45
upperMethod · 0.45
lowerMethod · 0.45

Tested by

no test coverage detected