示例#1
0
文件: tests.py 项目: dahuebi/vsmomi
 def testAppDryrun(self):
     for args in self.testArgs:
         try:
             with self.assertRaises(DryrunError):
                 vsmomi.main(["--dryrun"] + args)
         except SystemExit:
             assert False, args
示例#2
0
文件: vs.py 项目: dahuebi/vsmomi
#!/usr/bin/env python

import sys
import os
__file__ = os.path.abspath(__file__)
__scriptdir__ = os.path.dirname(__file__)
sys.path.insert(0, os.path.dirname(__scriptdir__))
import vsmomi

sys.exit(vsmomi.main())