def test_params_deprecation_view_connectome():
    deprecated_params = {'coords': 'node_coords', 'threshold': 'edge_threshold', 'cmap': 'edge_cmap', 'marker_size': 'node_size'}
    deprecation_msg = 'The parameter "{}" will be removed in 0.6.0 release of Nilearn. Please use the parameter "{}" instead.'
    warning_msgs = {old_: deprecation_msg.format(old_, new_) for (old_, new_) in deprecated_params.items()}
    (adj, coord) = _make_connectome()
    with warnings.catch_warnings(record=True) as raised_warnings:
        html_connectome.view_connectome(adjacency_matrix=adj, coords=coord, edge_threshold='85.3%', edge_cmap=cm.cyan_orange, linewidth=8.5, node_size=4.2)
        html_connectome.view_connectome(adjacency_matrix=adj, node_coords=coord, threshold='85.3%', edge_cmap=cm.cyan_orange, linewidth=8.5, node_size=4.2)
        html_connectome.view_connectome(adjacency_matrix=adj, node_coords=coord, edge_threshold='85.3%', cmap=cm.cyan_orange, linewidth=8.5, node_size=4.2)
        html_connectome.view_connectome(adjacency_matrix=adj, node_coords=coord, edge_threshold='85.3%', edge_cmap=cm.cyan_orange, linewidth=8.5, marker_size=4.2)
        html_connectome.view_connectome(adjacency_matrix=adj, node_coords=coord, edge_threshold='85.3%', edge_cmap=cm.cyan_orange, linewidth=8.5, node_size=4.2)
        html_connectome.view_connectome(adj, coord, '85.3%', cm.cyan_orange, 8.5, 4.2)
    old_params = ['coords', 'threshold', 'cmap', 'marker_size']
    raised_warning_messages = ''.join((str(warning.message) for warning in raised_warnings))
    print(raised_warning_messages)
    for old_param_ in old_params:
        assert (warning_msgs[old_param_] in raised_warning_messages)
def test_params_deprecation_view_connectome():
    deprecated_params = {'coords': 'node_coords', 'threshold': 'edge_threshold', 'cmap': 'edge_cmap', 'marker_size': 'node_size'}
    deprecation_msg = 'The parameter "{}" will be removed in 0.6.0 release of Nilearn. Please use the parameter "{}" instead.'
    warning_msgs = {old_: deprecation_msg.format(old_, new_) for (old_, new_) in deprecated_params.items()}
    (adj, coord) = _make_connectome()
    with warnings.catch_warnings(record=True) as raised_warnings:
        html_connectome.view_connectome(adjacency_matrix=adj, coords=coord, edge_threshold='85.3%', edge_cmap=cm.cyan_orange, linewidth=8.5, node_size=4.2)
        html_connectome.view_connectome(adjacency_matrix=adj, node_coords=coord, threshold='85.3%', edge_cmap=cm.cyan_orange, linewidth=8.5, node_size=4.2)
        html_connectome.view_connectome(adjacency_matrix=adj, node_coords=coord, edge_threshold='85.3%', cmap=cm.cyan_orange, linewidth=8.5, node_size=4.2)
        html_connectome.view_connectome(adjacency_matrix=adj, node_coords=coord, edge_threshold='85.3%', edge_cmap=cm.cyan_orange, linewidth=8.5, marker_size=4.2)
        html_connectome.view_connectome(adjacency_matrix=adj, node_coords=coord, edge_threshold='85.3%', edge_cmap=cm.cyan_orange, linewidth=8.5, node_size=4.2)
        html_connectome.view_connectome(adj, coord, '85.3%', cm.cyan_orange, 8.5, 4.2)
    old_params = ['coords', 'threshold', 'cmap', 'marker_size']
    raised_warning_messages = .join((str(warning.message) for warning in raised_warnings))
    print(raised_warning_messages)
    for old_param_ in old_params:
        assert (warning_msgs[old_param_] in raised_warning_messages)