summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorjosedpedroso <josedpedroso@gmail.com>2018-07-05 00:54:19 +0100
committerjosedpedroso <josedpedroso@gmail.com>2018-07-05 00:54:19 +0100
commitaf85184e28d8e4333472940bfe1d2eb6436b6733 (patch)
treede0d1253f425e2edafe596af7c932654ad1af989 /tests
parent44bb213a72019f341f2befcc44d56327d84571f3 (diff)
downloadwebsockify-af85184e28d8e4333472940bfe1d2eb6436b6733.tar.gz
Added --host-token to allow choosing target by hostname.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_websocketproxy.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_websocketproxy.py b/tests/test_websocketproxy.py
index 81c119e..5bd3a16 100644
--- a/tests/test_websocketproxy.py
+++ b/tests/test_websocketproxy.py
@@ -88,7 +88,7 @@ class ProxyRequestHandlerTestCase(unittest.TestCase):
return ("some host", "some port")
host, port = self.handler.get_target(
- TestPlugin(None), self.handler.path)
+ TestPlugin(None))
self.assertEqual(host, "some host")
self.assertEqual(port, "some port")
@@ -99,7 +99,7 @@ class ProxyRequestHandlerTestCase(unittest.TestCase):
return ("unix_socket", "/tmp/socket")
_, socket = self.handler.get_target(
- TestPlugin(None), self.handler.path)
+ TestPlugin(None))
self.assertEqual(socket, "/tmp/socket")
@@ -109,7 +109,7 @@ class ProxyRequestHandlerTestCase(unittest.TestCase):
return None
self.assertRaises(FakeServer.EClose, self.handler.get_target,
- TestPlugin(None), "https://localhost:6080/websockify?token=blah")
+ TestPlugin(None))
def test_token_plugin(self):
class TestPlugin(token_plugins.BasePlugin):