From 8378ba7a8d4d495a63802bded0d8d16b5151ed59 Mon Sep 17 00:00:00 2001 From: BlauFeuer Date: Thu, 15 Feb 2018 19:41:24 -0500 Subject: [PATCH] Add test for CmdFind locate alias and loc switch --- evennia/commands/default/tests.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/evennia/commands/default/tests.py b/evennia/commands/default/tests.py index 013baec4cc..850c1b6e4f 100644 --- a/evennia/commands/default/tests.py +++ b/evennia/commands/default/tests.py @@ -293,6 +293,12 @@ class TestBuilding(CommandTest): def test_find(self): self.call(building.CmdFind(), "Room2", "One Match") + expect = "One Match(#1#7, loc):\n " +\ + "Char2(#7) evennia.objects.objects.DefaultCharacter (location: Room(#1))" + self.call(building.CmdFind(), "Char2", expect, cmdstring="locate") + self.call(building.CmdFind(), "Char2", expect, cmdstring="@locate") + self.call(building.CmdFind(), "/loc Char2", expect, cmdstring="find") + self.call(building.CmdFind(), "Char2", "One Match", cmdstring="@find") def test_script(self): self.call(building.CmdScript(), "Obj = scripts.Script", "Script scripts.Script successfully added")