updated test

This commit is contained in:
trhr 2020-05-11 09:35:36 -05:00 committed by Griatch
parent 6a4209a84e
commit d27446b8ac

View file

@ -1296,7 +1296,7 @@ class TestTutorialWorldObjects(TwistedTestCase, CommandTest):
self.assertFalse(wall.db.exit_open)
def test_weapon(self):
weapon = create_object(tutobjects.Weapon, key="sword", location=self.char1)
weapon = create_object(tutobjects.TutorialWeapon, key="sword", location=self.char1)
self.call(
tutobjects.CmdAttack(), "Char", "You stab with sword.", obj=weapon, cmdstring="stab"
)
@ -1305,7 +1305,7 @@ class TestTutorialWorldObjects(TwistedTestCase, CommandTest):
)
def test_weaponrack(self):
rack = create_object(tutobjects.WeaponRack, key="rack", location=self.room1)
rack = create_object(tutobjects.TutorialWeaponRack, key="rack", location=self.room1)
rack.db.available_weapons = ["sword"]
self.call(tutobjects.CmdGetWeapon(), "", "You find Rusty sword.", obj=rack)