Start of location actions.
[naja.git] / naja / tests / test_gameboard.py
index a895e18b32f484a27976fded4ad8397d4da28fa0..0ad0d28a5f218df26b9be12554094bd6a880d1ec 100644 (file)
@@ -1,7 +1,15 @@
 from unittest import TestCase
 
 from naja.constants import BITS
-from naja.gameboard import LocationCard
+from naja.gameboard import GameBoard, LocationCard
+
+
+class TestGameBoard(TestCase):
+    def test_lose_health(self):
+        board = GameBoard(None, 4, 4, locations={}, state=None)
+        self.assertEqual(board.health, 4)
+        board.lose_health()
+        self.assertEqual(board.health, 3)
 
 
 class TestLocationCard(TestCase):