def testImportInvalidRobot(self): with self.assertRaises(ImportRobotException): GraspitCommander.importRobot("")
def testSaveWorld(self): GraspitCommander.importRobot("Barrett") GraspitCommander.importGraspableBody("ashtray") GraspitCommander.saveWorld("test_world")
def testImportRobot(self): GraspitCommander.importRobot("Barrett") assert len(GraspitCommander.getRobots().ids) == 1