def test_wear_boots(self): """ Test that boots can be worn """ character = CharacterBuilder().build() boots = (ItemBuilder().with_name('boots').with_boots_speed_modifier( 1).build()) equip(character, boots) assert_that(character, is_wearing_boots(boots))
def test_taking_off_boots(self): """ Boots can be removed """ character = CharacterBuilder().build() boots = (ItemBuilder().with_name('boots').with_boots_speed_modifier( 1).build()) character.inventory.boots = boots unequip(character, boots) assert_that(character, is_not(is_wearing_boots(boots)))
def test_wear_boots(self): """ Test that boots can be worn """ character = CharacterBuilder().build() boots = (ItemBuilder() .with_name('boots') .with_boots_speed_modifier(1) .build()) equip(character, boots) assert_that(character, is_wearing_boots(boots))
def test_taking_off_boots(self): """ Boots can be removed """ character = CharacterBuilder().build() boots = (ItemBuilder() .with_name('boots') .with_boots_speed_modifier(1) .build()) character.inventory.boots = boots unequip(character, boots) assert_that(character, is_not(is_wearing_boots(boots)))