diff --git a/test/test_cmdline.py b/test/test_cmdline.py index 476fc6206..f7bf4612c 100644 --- a/test/test_cmdline.py +++ b/test/test_cmdline.py @@ -40,8 +40,8 @@ def test_parse_server_spec(): assert cmdline.parse_server_spec("http://foo.com:88") == [False, False, "foo.com", 88] assert cmdline.parse_server_spec("http://foo.com") == [False, False, "foo.com", 80] assert cmdline.parse_server_spec("https://foo.com") == [True, True, "foo.com", 443] - assert cmdline.parse_server_spec("https2http://foo.com") == [True, False, "foo.com", 80] - assert cmdline.parse_server_spec("http2https://foo.com") == [False, True, "foo.com", 443] + assert cmdline.parse_server_spec_special("https2http://foo.com") == [True, False, "foo.com", 80] + assert cmdline.parse_server_spec_special("http2https://foo.com") == [False, True, "foo.com", 443] tutils.raises("Invalid server specification", cmdline.parse_server_spec, "foo.com") tutils.raises("Invalid server specification", cmdline.parse_server_spec, "http://")