Harden assertions

This commit is contained in:
Henddher Pedroza 2018-10-16 20:09:17 -05:00
parent dc44dc0176
commit e08efc68dc

View file

@ -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