Пример #1
0
 def test_kind_of_weapon(self):
     new_warrior = Warrior("Orc")
     new_warrior.set_sword("onehanded blade")
     self.assertEqual(new_warrior.strength, 170)
Пример #2
0
 def test_kind_of_poower(self):
     new_warrior = Warrior("Orc")
     new_warrior.power("first")
     self.assertEqual(new_warrior.strength, 120)
Пример #3
0
 def test_kind_of_powerr(self):
     new_warrior = Warrior("Orc")
     new_warrior.power("third")
     self.assertEqual(new_warrior.strength, 220)
Пример #4
0
 def test_kind_of_armorr(self):
     new_warrior = Warrior("Human")
     new_warrior.plate("mythic")
     self.assertEqual(new_warrior.health, 1200)
Пример #5
0
 def test_kind_of_arrmor(self):
     new_warrior = Warrior("Human")
     new_warrior.plate("epic")
     self.assertEqual(new_warrior.health, 260)
Пример #6
0
 def test_how_is_mana(self):
     new_warrior = Warrior("Human")
     new_warrior.magic("three")
     self.assertEqual(new_warrior.health, 200)
Пример #7
0
 def test_kind_of_power(self):
     new_warrior = Warrior("Orc")
     new_warrior.power("second")
     self.assertEqual(new_warrior.strength, 170)
Пример #8
0
 def test_kind_of_armor(self):
     new_warrior = Warrior("Human")
     new_warrior.plate("legend")
     self.assertEqual(new_warrior.health, 700)