Move some config variables to handler.py

This commit is contained in:
Sheng
2018-10-18 15:07:45 +08:00
parent 383f61d4cc
commit 5d6f92e529
5 changed files with 38 additions and 30 deletions
+3 -2
View File
@@ -1,5 +1,6 @@
import unittest
import paramiko
import webssh.handler
from tornado.httpclient import HTTPRequest
from tornado.httputil import HTTPServerRequest
@@ -16,8 +17,8 @@ class TestMixinHandler(unittest.TestCase):
def test_is_forbidden(self):
handler = MixinHandler()
handler.is_open_to_public = True
handler.forbid_public_http = True
webssh.handler.is_open_to_public = True
webssh.handler.forbid_public_http = True
request = HTTPRequest('http://example.com/')
handler.request = request