mirror of
https://github.com/evennia/evennia.git
synced 2026-03-22 15:56:30 +01:00
Add tests to cover all 3 cases of CmdHome
This commit is contained in:
parent
68d1c89a44
commit
d5ed93b663
1 changed files with 8 additions and 0 deletions
|
|
@ -68,6 +68,14 @@ class TestGeneral(BaseEvenniaCommandTest):
|
|||
def test_home(self):
|
||||
self.call(general.CmdHome(), "", "You are already home")
|
||||
|
||||
def test_go_home(self):
|
||||
self.call(building.CmdTeleport(), "/quiet Room2")
|
||||
self.call(general.CmdHome(), "", "There's no place like home")
|
||||
|
||||
def test_no_home(self):
|
||||
self.char1.home = None
|
||||
self.call(general.CmdHome(), "", "You have no home")
|
||||
|
||||
def test_inventory(self):
|
||||
self.call(general.CmdInventory(), "", "You are not carrying anything.")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue