Ejemplo n.º 1
0
    def privilegedStartService(self):
        self._loadEnvVars()

        TCP4ServerEndpoint(self._reactor, 80).listen(insecureSite())

        ctxFactory = self._getCtxFactory()
        sslEndpoint = SSL4ServerEndpoint(self._reactor, 443, ctxFactory)
        sslEndpoint.listen(secureSite(self._environ))
Ejemplo n.º 2
0
 def test_doesntDisplayTracebacks(self):
     site = secureSite({"STATIC_PATH": ""})
     self.assertFalse(site.displayTracebacks)