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

Method testCGIEnviron

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

Source from the content-addressed store, hash-verified

600 self.assertDictEqual(handler.environ, expected)
601
602 def testCGIEnviron(self):
603 h = BaseCGIHandler(None,None,None,{})
604 h.setup_environ()
605 for key in 'wsgi.url_scheme', 'wsgi.input', 'wsgi.errors':
606 self.assertIn(key, h.environ)
607
608 def testScheme(self):
609 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