Patched up tests.

This commit is contained in:
Jonathan Piacenti 2015-02-26 23:19:23 -06:00 committed by Griatch
parent 9b7d4e656e
commit be13998771
2 changed files with 4 additions and 2 deletions

View file

@ -171,9 +171,10 @@ class TestPlayer(CommandTest):
self.call(player.CmdOOCLook(), "", "Account TestPlayer (you are OutofCharacter)", caller=self.player)
def test_ooc(self):
self.call(player.CmdOOC(), "", "You are already", caller=self.player)
self.call(player.CmdOOC(), "", "You go OOC.", caller=self.player)
def test_ic(self):
self.player.unpuppet_object(self.session.sessid)
self.call(player.CmdIC(), "Char", "You become Char.", caller=self.player, receiver=self.char1)
def test_password(self):
@ -198,7 +199,6 @@ class TestPlayer(CommandTest):
self.call(player.CmdCharCreate(), "Test1=Test char", "Created new character Test1. Use @ic Test1 to enter the game", caller=self.player)
def test_quell(self):
self.call(player.CmdIC(), "Char", "You become Char.", caller=self.player, receiver=self.char1)
self.call(player.CmdQuell(), "", "Quelling to current puppet's permissions (immortals).", caller=self.player)

View file

@ -40,7 +40,9 @@ class EvenniaTest(TestCase):
self.char1.permissions.add("Immortals")
self.char2 = create.create_object(self.character_typeclass, key="Char2", location=self.room1, home=self.room1)
self.char1.player = self.player
self.player.db._last_puppet = self.char1
self.char2.player = self.player2
self.player2.db._last_puppet = self.char2
self.script = create.create_script(self.script_typeclass, key="Script")
self.player.permissions.add("Immortals")