From 845c55ddec9904e5571813180df2f1a6f9186513 Mon Sep 17 00:00:00 2001 From: meejah Date: Sun, 9 May 2021 23:38:40 -0600 Subject: [PATCH] test --websocket-url option too --- src/wormhole_transit_relay/test/test_config.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/wormhole_transit_relay/test/test_config.py b/src/wormhole_transit_relay/test/test_config.py index 9d4f762..b2bb7e8 100644 --- a/src/wormhole_transit_relay/test/test_config.py +++ b/src/wormhole_transit_relay/test/test_config.py @@ -24,6 +24,14 @@ class Config(unittest.TestCase): "usage-db": None, "port": PORT, "websocket": "tcp:4004", "websocket-url": None}) + def test_websocket_url(self): + o = server_tap.Options() + o.parseOptions(["--websocket=tcp:4004", "--websocket-url=ws://example.com/"]) + self.assertEqual(o, {"blur-usage": None, "log-fd": None, + "usage-db": None, "port": PORT, + "websocket": "tcp:4004", + "websocket-url": "ws://example.com/"}) + def test_string(self): o = server_tap.Options() s = str(o)