Tests for @spawn/edit and @spawn/examine

This commit is contained in:
Henddher Pedroza 2018-10-18 17:52:25 -05:00
parent 5387419a3d
commit 4946b0f65d

View file

@ -372,6 +372,17 @@ class TestBuilding(CommandTest):
self.call(building.CmdSpawn(), \
"'NO_EXIST'", "No prototype named 'NO_EXIST'")
# @span/edit
self.call(
building.CmdSpawn(),
'/edit',
'spawn: Extra switch "/edit" ignored')
# @span/examine
self.call(
'/examine',
building.CmdSpawn(), 'spawn: Extra switch "/examine" ignored')
class TestComms(CommandTest):
@ -446,4 +457,4 @@ class TestUnconnectedCommand(CommandTest):
settings.SERVERNAME,
datetime.datetime.fromtimestamp(gametime.SERVER_START_TIME).ctime(),
SESSIONS.account_count(), utils.get_evennia_version())
self.call(unloggedin.CmdUnconnectedInfo(), "", expected)
self.call(unloggedin.CmdUnconnectedInfo(), "", expected)