Add separated case for max_xp

This commit is contained in:
decay
2020-05-18 21:42:43 +03:00
parent 678f44f7be
commit 1caa057f66
+5 -2
View File
@@ -21,8 +21,11 @@ class TestCharacter(TestCase):
char.level = 2
char.hit_dice_faces = 10
self.assertEqual(char.hit_dice, '2d10')
self.assertEqual(char.hp_max, 10)
def test_max_hp(self):
char = Wizard(level=3, constitution=12)
self.assertEqual(char.hp_max, 17)
def test_set_attrs(self):
char = Character()
char.set_attrs(name='Inara')