def nose_config_and_run(argv=None, env=None, ignore_files=[], plugins=None):
 if (env is None):
  env = os.environ
 if (plugins is None):
  plugins = nose.plugins.manager.DefaultPluginManager()
 if (argv is None):
  argv = sys.argv
 test_config = nose.config.Config(env=os.environ, ignoreFiles=ignore_files, plugins=plugins)
 test_config.plugins.addPlugin(StructuredTestDataPlugin())
 test_config.configure(argv)
 result = run(test_config)
 success = result.wasSuccessful()
 return success

def nose_config_and_run ( argv = None , env = None , ignore_files = [ ] , plugins = None ) : if ( env is None ) : env = os . environ if ( plugins is None ) : plugins = nose . plugins . manager . DefaultPluginManager ( ) if ( argv is None ) : argv = sys . argv test_config = nose . config . Config ( env = os . environ , ignoreFiles = ignore_files , plugins = plugins ) test_config . plugins . addPlugin ( StructuredTestDataPlugin ( ) ) test_config . configure ( argv ) result = run ( test_config ) success = result . wasSuccessful ( ) return success
setup a nose context and run tests .