def test_selectfiles_valueerror():
 base_dir = op.dirname(nipype.__file__)
 templates = {u'model': u'interfaces/{package}/model.py', u'preprocess': u'interfaces/{package}/pre*.py'}
 force_lists = [u'model', u'preprocess', u'registration']
 sf = nio.SelectFiles(templates, base_directory=base_dir, force_lists=force_lists)
 with pytest.raises(ValueError):
  sf.run()

def test_selectfiles_valueerror ( ) : base_dir = op . dirname ( nipype . __file__ ) templates = { u'model' : u'interfaces/{package}/model.py' , u'preprocess' : u'interfaces/{package}/pre*.py' } force_lists = [ u'model' , u'preprocess' , u'registration' ] sf = nio . SelectFiles ( templates , base_directory = base_dir , force_lists = force_lists ) with pytest . raises ( ValueError ) : sf . run ( )
test valueerror when force_lists has field that isnt in template .