示例#1
0
文件: test.py 项目: yokuba/emulambda
 def test_parse_args_normal(self):
     sys.argv = [sys.argv[0], 'foo', 'bar']
     try:
         args = emulambda.parseargs()
         assert args
     except BaseException as e:
         self.fail("Basic argument parsing failed.\n%s" % e.message)
示例#2
0
文件: test.py 项目: fugue/emulambda
 def test_parse_args_normal(self):
     sys.argv = [sys.argv[0], "foo", "bar"]
     try:
         args = emulambda.parseargs()
         assert args
     except BaseException as e:
         self.fail("Basic argument parsing failed.\n%s" % e.message)
示例#3
0
文件: test.py 项目: fugue/emulambda
 def test_parse_args_empty(self):
     sys.argv = [sys.argv[0]]
     try:
         args = emulambda.parseargs()
         self.fail("Command line interface no longer matches testmodule specification.")
     except SystemExit:
         sys.stderr.write("^ ignore above")
         assert True
示例#4
0
文件: test.py 项目: yokuba/emulambda
 def test_parse_args_empty(self):
     sys.argv = [sys.argv[0]]
     try:
         args = emulambda.parseargs()
         self.fail(
             "Command line interface no longer matches testmodule specification."
         )
     except SystemExit:
         sys.stderr.write("^ ignore above")
         assert True