def METHOD_NAME(self, mock_warning, mock_url):
    dependency = dependencies.StaticDependency("name", "version", js_path="js_path")
    dependency.get_custom_version_url(url_type="js", version="different_version")
    mock_warning.assert_called_once()
    mock_url.assert_called_with("js", "different_version", debug=None, use_cdn=True)