Esempio n. 1
0
    def test_when_weapon_is_equal_to_spell_then_return_weapon(self):
        human = Human(100, 100)
        weapon = Weapon(name='The Axe of Destiny', damage=20)
        weapon.equip_to(human)

        spell = Spell(name='The Fireball of Destiny',
                      damage=20,
                      mana_cost=10,
                      cast_range=2)
        spell.equip_to(human)

        self.assertEqual(human.get_strongest_mean(), weapon)
Esempio n. 2
0
    def test_when_human_has_no_means_then_return_none(self):
        human = Human(100, 100)

        self.assertEqual(human.get_strongest_mean(), None)