Example #1
0
 def test_simple(self):
     assert utils.unparse_url("http", "foo.com", 99,
                              "") == "http://foo.com:99"
     assert utils.unparse_url("http", "foo.com", 80, "") == "http://foo.com"
     assert utils.unparse_url("https", "foo.com", 80,
                              "") == "https://foo.com:80"
     assert utils.unparse_url("https", "foo.com", 443,
                              "") == "https://foo.com"
Example #2
0
 def test_simple(self):
     assert utils.unparse_url("http", "foo.com", 99, "") == "http://foo.com:99"
     assert utils.unparse_url("http", "foo.com", 80, "") == "http://foo.com"
     assert utils.unparse_url("https", "foo.com", 80, "") == "https://foo.com:80"
     assert utils.unparse_url("https", "foo.com", 443, "") == "https://foo.com"