Add test_give for CmdGive parse multiple splits

This commit is contained in:
BlauFeuer 2018-03-05 20:36:17 -05:00 committed by GitHub
parent 64f57da1e4
commit fe3bbf5c65

View file

@ -140,6 +140,13 @@ class TestGeneral(CommandTest):
self.call(general.CmdGet(), "Obj", "You pick up Obj.")
self.call(general.CmdDrop(), "Obj", "You drop Obj.")
def test_give(self):
self.call(general.CmdGive(), "Obj to Char2", "You aren't carrying Obj.")
self.call(general.CmdGive(), "Obj = Char2", "You aren't carrying Obj.")
self.call(general.CmdGet(), "Obj", "You pick up Obj.")
self.call(general.CmdGive(), "Obj to Char2", "You give")
self.call(general.CmdGive(), "Obj = Char", "You give", caller=self.char2)
def test_say(self):
self.call(general.CmdSay(), "Testing", "You say, \"Testing\"")