def _run_install(args, cwd, error): """Process arguments and run the `install` 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.install(args.name)
def test_install_uninstall(self): """Verify a package can be installed.""" self.assertTrue(main.install(['testpackage'])) self.assertTrue(main.uninstall(['testpackage']))