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

Method testScheme

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

Source from the content-addressed store, hash-verified

606 self.assertIn(key, h.environ)
607
608 def testScheme(self):
609 h=TestHandler(HTTPS="on"); h.setup_environ()
610 self.assertEqual(h.environ['wsgi.url_scheme'],'https')
611 h=TestHandler(); h.setup_environ()
612 self.assertEqual(h.environ['wsgi.url_scheme'],'http')
613
614 def testAbstractMethods(self):
615 h = BaseHandler()

Callers

nothing calls this directly

Calls 3

TestHandlerClass · 0.70
setup_environMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected