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

Method testScheme

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

Source from the content-addressed store, hash-verified

594 self.assertIn(key, h.environ)
595
596 def testScheme(self):
597 h=TestHandler(HTTPS="on"); h.setup_environ()
598 self.assertEqual(h.environ['wsgi.url_scheme'],'https')
599 h=TestHandler(); h.setup_environ()
600 self.assertEqual(h.environ['wsgi.url_scheme'],'http')
601
602 def testAbstractMethods(self):
603 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