Ejemplo n.º 1
0
    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))
Ejemplo n.º 2
0
    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)))
Ejemplo n.º 3
0
    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))
Ejemplo n.º 4
0
    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)))