@ultra_slow_test
@requires_freesurfer
@testing.requires_testing_data
def test_watershed_bem():
 check_usage(mne_watershed_bem)
 tempdir = _TempDir()
 mridata_path = op.join(subjects_dir, 'sample', 'mri')
 mridata_path_new = op.join(tempdir, 'sample', 'mri')
 os.mkdir(op.join(tempdir, 'sample'))
 os.mkdir(mridata_path_new)
 if op.exists(op.join(mridata_path, 'T1')):
  shutil.copytree(op.join(mridata_path, 'T1'), op.join(mridata_path_new, 'T1'))
 if op.exists(op.join(mridata_path, 'T1.mgz')):
  shutil.copyfile(op.join(mridata_path, 'T1.mgz'), op.join(mridata_path_new, 'T1.mgz'))
 with ArgvSetter(('-d', tempdir, '-s', 'sample', '-o'), disable_stdout=False, disable_stderr=False):
  mne_watershed_bem.run()

@ ultra_slow_test @ requires_freesurfer @ testing . requires_testing_data def test_watershed_bem ( ) : check_usage ( mne_watershed_bem ) tempdir = _TempDir ( ) mridata_path = op . join ( subjects_dir , 'sample' , 'mri' ) mridata_path_new = op . join ( tempdir , 'sample' , 'mri' ) os . mkdir ( op . join ( tempdir , 'sample' ) ) os . mkdir ( mridata_path_new ) if op . exists ( op . join ( mridata_path , 'T1' ) ) : shutil . copytree ( op . join ( mridata_path , 'T1' ) , op . join ( mridata_path_new , 'T1' ) ) if op . exists ( op . join ( mridata_path , 'T1.mgz' ) ) : shutil . copyfile ( op . join ( mridata_path , 'T1.mgz' ) , op . join ( mridata_path_new , 'T1.mgz' ) ) with ArgvSetter ( ( '-d' , tempdir , '-s' , 'sample' , '-o' ) , disable_stdout = False , disable_stderr = False ) : mne_watershed_bem . run ( )
test mne watershed bem .