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

Method testCGIEnviron

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

Source from the content-addressed store, hash-verified

588 self.assertDictEqual(handler.environ, expected)
589
590 def testCGIEnviron(self):
591 h = BaseCGIHandler(None,None,None,{})
592 h.setup_environ()
593 for key in 'wsgi.url_scheme', 'wsgi.input', 'wsgi.errors':
594 self.assertIn(key, h.environ)
595
596 def testScheme(self):
597 h=TestHandler(HTTPS="on"); h.setup_environ()

Callers

nothing calls this directly

Calls 3

BaseCGIHandlerClass · 0.90
assertInMethod · 0.80
setup_environMethod · 0.45

Tested by

no test coverage detected