fcc22e65a2d7f07e95d470f1c3d41f269b0e6fb2,nilearn/surface/tests/test_surface.py,,test_load_surf_mesh_list,#,148

Before Change


    assert_array_equal(load_surf_mesh(mesh)[0], mesh[0])
    assert_array_equal(load_surf_mesh(mesh)[1], mesh[1])
    // test if incorrect list, array or dict raises error
    assert_raises_regex(ValueError, "it must have two elements",
                        load_surf_mesh, [])
    assert_raises_regex(ValueError, "it must have two elements",
                        load_surf_mesh, [mesh[0]])
    assert_raises_regex(ValueError, "it must have two elements",
                        load_surf_mesh, [mesh[0], mesh[1], mesh[1]])

After Change


    // test if incorrect list, array or dict raises error
    with pytest.raises(ValueError, match="it must have two elements"):
        load_surf_mesh([])
    with pytest.raises(ValueError, match="it must have two elements"):
        load_surf_mesh([mesh[0]])
    with pytest.raises(ValueError, match="it must have two elements"):
        load_surf_mesh([mesh[0], mesh[1], mesh[1]])
    with pytest.raises(ValueError, match="input type is not recognized"):
        load_surf_mesh(mesh[0])
    with pytest.raises(ValueError, match="input type is not recognized"):
        load_surf_mesh(dict())
    del mesh


def test_gifti_img_to_mesh():
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: nilearn/nilearn
Commit Name: fcc22e65a2d7f07e95d470f1c3d41f269b0e6fb2
Time: 2019-12-20
Author: kc.insight.pi@gmail.com
File Name: nilearn/surface/tests/test_surface.py
Class Name:
Method Name: test_load_surf_mesh_list


Project Name: nilearn/nilearn
Commit Name: fcc22e65a2d7f07e95d470f1c3d41f269b0e6fb2
Time: 2019-12-20
Author: kc.insight.pi@gmail.com
File Name: nilearn/surface/tests/test_surface.py
Class Name:
Method Name: test_load_surf_mesh_list


Project Name: nilearn/nilearn
Commit Name: fcc22e65a2d7f07e95d470f1c3d41f269b0e6fb2
Time: 2019-12-20
Author: kc.insight.pi@gmail.com
File Name: nilearn/surface/tests/test_surface.py
Class Name:
Method Name: test_load_surf_mesh_file_gii


Project Name: nilearn/nilearn
Commit Name: fcc22e65a2d7f07e95d470f1c3d41f269b0e6fb2
Time: 2019-12-20
Author: kc.insight.pi@gmail.com
File Name: nilearn/surface/tests/test_surface.py
Class Name:
Method Name: test_load_surf_mesh_file_glob