@testing.requires_testing_data
@requires_mayavi
def test_plot_dipole_locations():
 dipoles = read_dipole(dip_fname)
 trans = read_trans(trans_fname)
 dipoles.plot_locations(trans, 'sample', subjects_dir, fig_name='foo')
 assert_raises(ValueError, dipoles.plot_locations, trans, 'sample', subjects_dir, mode='foo')

@ testing . requires_testing_data @ requires_mayavi def test_plot_dipole_locations ( ) : dipoles = read_dipole ( dip_fname ) trans = read_trans ( trans_fname ) dipoles . plot_locations ( trans , 'sample' , subjects_dir , fig_name = 'foo' ) assert_raises ( ValueError , dipoles . plot_locations , trans , 'sample' , subjects_dir , mode = 'foo' )
test plotting dipole locations .