mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
Harden assertions
This commit is contained in:
parent
dc44dc0176
commit
e08efc68dc
1 changed files with 2 additions and 2 deletions
|
|
@ -270,7 +270,7 @@ class TestBuilding(CommandTest):
|
|||
o2d = self.obj2.db.desc
|
||||
r1d = self.room1.db.desc
|
||||
self.call(building.CmdDesc(), "Obj2=", "The description was set on Obj2(#5).")
|
||||
assert self.obj2.db.desc == ''
|
||||
assert self.obj2.db.desc == '' and self.obj2.db.desc != o2d
|
||||
assert self.room1.db.desc == r1d
|
||||
|
||||
def test_desc_default_to_room(self):
|
||||
|
|
@ -279,7 +279,7 @@ class TestBuilding(CommandTest):
|
|||
r1d = self.room1.db.desc
|
||||
self.call(building.CmdDesc(), "Obj2", "The description was set on Room(#1).")
|
||||
assert self.obj2.db.desc == o2d
|
||||
assert self.room1.db.desc == 'Obj2'
|
||||
assert self.room1.db.desc == 'Obj2' and self.room1.db.desc != r1d
|
||||
|
||||
def test_wipe(self):
|
||||
confirm = building.CmdDestroy.confirm
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue