updated test
This commit is contained in:
parent
6a4209a84e
commit
d27446b8ac
1 changed files with 2 additions and 2 deletions
|
|
@ -1296,7 +1296,7 @@ class TestTutorialWorldObjects(TwistedTestCase, CommandTest):
|
||||||
self.assertFalse(wall.db.exit_open)
|
self.assertFalse(wall.db.exit_open)
|
||||||
|
|
||||||
def test_weapon(self):
|
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(
|
self.call(
|
||||||
tutobjects.CmdAttack(), "Char", "You stab with sword.", obj=weapon, cmdstring="stab"
|
tutobjects.CmdAttack(), "Char", "You stab with sword.", obj=weapon, cmdstring="stab"
|
||||||
)
|
)
|
||||||
|
|
@ -1305,7 +1305,7 @@ class TestTutorialWorldObjects(TwistedTestCase, CommandTest):
|
||||||
)
|
)
|
||||||
|
|
||||||
def test_weaponrack(self):
|
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"]
|
rack.db.available_weapons = ["sword"]
|
||||||
self.call(tutobjects.CmdGetWeapon(), "", "You find Rusty sword.", obj=rack)
|
self.call(tutobjects.CmdGetWeapon(), "", "You find Rusty sword.", obj=rack)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue