Exemplo n.º 1
0
 def test_create_levelled_monster(self):
     self.monster = monsters.Monster(level=5)
     expected_stats = {'str': 12,
                       'con': 12,
                       'int': 12,
                       'spd': 12,
                       'maxhp': 34}
     actual_stats = {'str': self.monster.strength,
                     'con': self.monster.constitution,
                     'int': self.monster.intelligence,
                     'spd': self.monster.speed,
                     'maxhp': self.monster.maxhp}
     self.assertEqual(self.monster.level, 5)
     self.assertEqual(actual_stats, expected_stats)
     self.assertEqual(self.monster.hp, self.monster.maxhp)
Exemplo n.º 2
0
 def setUp(self):
     self.monster = monsters.Monster()
     self.dummy = TargetDummy()