def METHOD_NAME(self):
    # With http.
    assert get_base_url("http://example.com") == "http://example.com"
    assert get_base_url("http://example.com/some/path") == "http://example.com"
    assert (
        get_base_url("http://example.com.au/some/path") == "http://example.com.au"
    )
    # With https.
    assert get_base_url("https://example.com") == "https://example.com"
    assert get_base_url("https://example.com/some/path") == "https://example.com"
    assert (
        get_base_url("https://example.com.au/some/path") == "https://example.com.au"
    )