def METHOD_NAME(self):
    # Check that UserWarning is being called with http plotly_domain
    with warnings.catch_warnings(record=True) as w:
        warnings.simplefilter("always")
        kwargs = {"plotly_domain": "http://www.foo-bar.com"}
        tools.set_config_file(**kwargs)
        assert len(w) == 1
        assert issubclass(w[-1].category, UserWarning)
        assert "plotly_domain" in str(w[-1].message)