def METHOD_NAME(self):
    with warns(UserWarning):
        assert get_base_url("example.com", include_scheme=False) == "example.com"
        assert (
            get_base_url("example.com/some/path", include_scheme=False)
            == "example.com"
        )
        assert (
            get_base_url("example.com.au/some/path", include_scheme=False)
            == "example.com.au"
        )
        assert get_base_url("bad_url", include_scheme=False) == "bad_url"