Implemented unittests for all default commands in a new and much faster way.

This commit is contained in:
Griatch 2013-05-12 19:53:19 +02:00
parent a6840aff15
commit bd9421d4b0
9 changed files with 133 additions and 528 deletions

View file

@ -427,7 +427,7 @@ class CmdEmit(MuxCommand):
else:
caller.msg("Emitted to %s." % objname)
else:
caller.msg("You are not allowed to send to %s." % objname)
caller.msg("You are not allowed to emit to %s." % objname)
@ -547,10 +547,6 @@ class CmdPerm(MuxCommand):
# add a new permission
permissions = obj.permissions
caller.permissions
for perm in self.rhslist:
# don't allow to set a permission higher in the hierarchy than the one the
@ -589,4 +585,5 @@ class CmdWall(MuxCommand):
self.caller.msg("Usage: @wall <message>")
return
message = "%s shouts \"%s\"" % (self.caller.name, self.args)
self.msg("Announcing to all connected players ...")
SESSIONS.announce_all(message)