Beispiel #1
0
 def test_adventurer_use_healing_potion(self):
     player = Adventurer("player")
     hit_point = player.hit_point()
     player.use_healing_potion()
     self.assertEqual(player.hit_point(), hit_point)
Beispiel #2
0
 def test_adventurer_decrease_hit_points(self):
     player = Adventurer("player")
     hit_point = player.hit_point()
     player.decrease_hit_points(5)
     decrease_hit_points = hit_point - 5
     self.assertEqual(player.hit_point(), decrease_hit_points)