def _add_uut(self): uri = self._obj._config.DBURI cmd = databaseCLI.get_database_editor(self, uri) obj = cmd._create(database.UUTBuild) if obj is not None: self._print("UUT added.") else: self._print("UUT was not created.")
def database(self, argv): """database [<uri>] Enter the database editor.""" if len(argv) > 1: uri = argv[1] else: uri = self._obj._config.DBURI cmd = databaseCLI.get_database_editor(self, uri) raise NewCommand, cmd