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)
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)
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
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