From f1b040e80830314c834c7e8ef7697ffe39b19770 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Fri, 2 Jan 2015 16:12:25 +1300 Subject: [PATCH] Fix unit tests --- test/test_cmdline.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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://")