def unit_test(rootdir): try: l = Log() l.SetLogVerbosity(Log.INFO) cfg = rtevalConfig(logger=l) cfg.Load(os.path.join(rootdir, 'rteval.conf')) print cfg return 0 except Exception, e: print "** EXCEPTION %s", str(e) return 1