コード例 #1
0
def test_fills_in_relative_url():
    assert BaseAPI.fill_in_url_scheme("//example.com") == "https://example.com"
コード例 #2
0
def test_respects_passed_scheme():
    assert BaseAPI.fill_in_url_scheme("//example.com",
                                      "wss") == "wss://example.com"
コード例 #3
0
def test_does_not_change_non_relative_urls():
    assert BaseAPI.fill_in_url_scheme(
        "http://example.com") == "http://example.com"