@testing.requires_testing_data
@requires_nibabel()
def test_plot_bem():
 assert_raises(IOError, plot_bem, subject='bad-subject', subjects_dir=subjects_dir)
 assert_raises(ValueError, plot_bem, subject='sample', subjects_dir=subjects_dir, orientation='bad-ori')
 plot_bem(subject='sample', subjects_dir=subjects_dir, orientation='sagittal', slices=[25, 50])
 plot_bem(subject='sample', subjects_dir=subjects_dir, orientation='coronal', slices=[25, 50], brain_surfaces='white')
 plot_bem(subject='sample', subjects_dir=subjects_dir, orientation='coronal', slices=[25, 50], src=src_fname)

@ testing . requires_testing_data @ requires_nibabel ( ) def test_plot_bem ( ) : assert_raises ( IOError , plot_bem , subject = 'bad-subject' , subjects_dir = subjects_dir ) assert_raises ( ValueError , plot_bem , subject = 'sample' , subjects_dir = subjects_dir , orientation = 'bad-ori' ) plot_bem ( subject = 'sample' , subjects_dir = subjects_dir , orientation = 'sagittal' , slices = [ 25 , 50 ] ) plot_bem ( subject = 'sample' , subjects_dir = subjects_dir , orientation = 'coronal' , slices = [ 25 , 50 ] , brain_surfaces = 'white' ) plot_bem ( subject = 'sample' , subjects_dir = subjects_dir , orientation = 'coronal' , slices = [ 25 , 50 ] , src = src_fname )
test plotting of bem contours .