def test_teleport(self): self.call(building.CmdTeleport(), "/quiet Room2", "Room2(#2)\n|Teleported to Room2.") self.call( building.CmdTeleport(), "/t", # /t switch is abbreviated form of /tonone "Cannot teleport a puppeted object (Char, puppeted by TestAccount(account 1)) to a None-location." ) self.call( building.CmdTeleport(), "/l Room2", # /l switch is abbreviated form of /loc "Destination has no location.") self.call( building.CmdTeleport(), "/q me to Room2", # /q switch is abbreviated form of /quiet "Char is already at Room2.")
def test_teleport(self): self.call(building.CmdTeleport(), "Room2", "Room2(#2)\n|Teleported to Room2.")
def at_cmdset_creation(self): "Populates the cmdset" # The general commands self.add(general.CmdLook()) self.add(general.CmdMove()) # self.add(general.CmdHome()) self.add(general.CmdInventory()) # self.add(general.CmdPose()) # self.add(general.CmdNick()) # self.add(general.CmdSetDesc()) self.add(general.CmdGet()) self.add(general.CmdDrop()) # self.add(general.CmdGive()) # self.add(general.CmdSay()) # self.add(general.CmdWhisper()) # self.add(general.CmdAccess()) # The help system self.add(help.CmdHelp()) self.add(help.CmdSetHelp()) # System commands self.add(system.CmdPy()) self.add(system.CmdScripts()) self.add(system.CmdObjects()) self.add(system.CmdAccounts()) self.add(system.CmdService()) self.add(system.CmdAbout()) self.add(system.CmdTime()) self.add(system.CmdServerLoad()) # self.add(system.CmdPs()) self.add(system.CmdTickers()) # Admin commands self.add(admin.CmdBoot()) self.add(admin.CmdBan()) self.add(admin.CmdUnban()) self.add(admin.CmdEmit()) self.add(admin.CmdPerm()) self.add(admin.CmdWall()) self.add(admin.CmdForce()) # Building and world manipulation self.add(building.CmdTeleport()) self.add(building.CmdSetObjAlias()) self.add(building.CmdListCmdSets()) self.add(building.CmdWipe()) self.add(building.CmdSetAttribute()) self.add(building.CmdName()) self.add(building.CmdDesc()) self.add(building.CmdCpAttr()) self.add(building.CmdMvAttr()) self.add(building.CmdCopy()) self.add(building.CmdFind()) self.add(building.CmdOpen()) self.add(building.CmdLink()) self.add(building.CmdUnLink()) self.add(building.CmdCreate()) self.add(building.CmdDig()) self.add(building.CmdTunnel()) self.add(building.CmdDestroy()) self.add(building.CmdExamine()) self.add(building.CmdTypeclass()) self.add(building.CmdLock()) self.add(building.CmdScript()) self.add(building.CmdSetHome()) self.add(building.CmdTag()) self.add(building.CmdSpawn()) # Batchprocessor commands self.add(batchprocess.CmdBatchCommands()) self.add(batchprocess.CmdBatchCode())
def test_teleport(self): oid = self.obj1.id rid = self.room1.id rid2 = self.room2.id self.call(building.CmdTeleport(), "", "Usage: ") self.call(building.CmdTeleport(), "Obj = Room", "Obj is already at Room.") self.call( building.CmdTeleport(), "Obj = NotFound", "Could not find 'NotFound'.|Destination not found.", ) self.call( building.CmdTeleport(), "Obj = Room2", "Obj(#{}) is leaving Room(#{}), heading for Room2(#{}).|Teleported Obj -> Room2." .format(oid, rid, rid2), ) self.call(building.CmdTeleport(), "NotFound = Room", "Could not find 'NotFound'.") self.call(building.CmdTeleport(), "Obj = Obj", "You can't teleport an object inside of itself!") self.call(building.CmdTeleport(), "/tonone Obj2", "Teleported Obj2 -> None-location.") self.call(building.CmdTeleport(), "/quiet Room2", "Room2(#{})".format(rid2)) self.call( building.CmdTeleport(), "/t", # /t switch is abbreviated form of /tonone "Cannot teleport a puppeted object (Char, puppeted by TestAccount", ) self.call( building.CmdTeleport(), "/l Room2", # /l switch is abbreviated form of /loc "Destination has no location.", ) self.call( building.CmdTeleport(), "/q me to Room2", # /q switch is abbreviated form of /quiet "Char is already at Room2.", )