def _run_serve(args, cwd, error): """Process arguments and run the `serve` subcommand. @param args: Namespace of CLI arguments @param cwd: current working directory @param error: function to call for CLI errors """ logging.debug("unused arguments: {0}".format((cwd, error))) return _main.serve(port=args.port, forever=not args.test, temp=args.temp)
def test_serve(self): """Verify the server can be started.""" self.assertTrue(main.serve(forever=False))