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))
def test_doesntDisplayTracebacks(self): site = secureSite({"STATIC_PATH": ""}) self.assertFalse(site.displayTracebacks)