예제 #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)