Exemple #1
0
 def testTypeHealthStrStrength(self):
     with self.assertRaises(ValueError):
         Soldier('150', self.strength)
Exemple #2
0
 def setUp(cls):
     cls.strength = 150
     cls.health = 300
     cls.soldier = Soldier(cls.health, cls.strength)
Exemple #3
0
 def testTypeHealthStrHealth(self):
     with self.assertRaises(ValueError):
         Soldier('300', self.health)