X-Git-Url: https://git.ctpug.org.za/?a=blobdiff_plain;f=naja%2Ftests%2Ftest_gameboard.py;h=cccd9aae88be92758b1ab658292423fdf2a532b9;hb=2bc3952e185343ae2ff75f3f8ed738561858f61b;hp=f8672b45d149aad1bd8a719f1d8f2d61229808c7;hpb=b672949475f81700075633c7ce82b5bb7900c60e;p=naja.git diff --git a/naja/tests/test_gameboard.py b/naja/tests/test_gameboard.py index f8672b4..cccd9aa 100644 --- a/naja/tests/test_gameboard.py +++ b/naja/tests/test_gameboard.py @@ -43,6 +43,7 @@ class TestGameBoard(TestCase): exported_state = board.export() board_locations = exported_state.pop('board_locations') self.assertEqual(exported_state, { + 'clock_count': 0, 'max_health': 4, 'health': 4, 'wins_required': 4, @@ -60,7 +61,6 @@ class TestGameBoard(TestCase): 'puzzle': False, 'player_mode': EXAMINE, 'replacement_params': None, - 'clock_count': 0, }) positions = [] for position, location_state in board_locations: @@ -357,14 +357,3 @@ class TestLocationCard(TestCase): self.assertEqual(type(action), actions.DoNothing) self.assertEqual(action.required_bits, set()) self.assertEqual(location.replacement_time, None) - - def test_parse_bits(self): - self.assertEqual( - LocationCard.parse_bits([]), frozenset([])) - self.assertEqual( - LocationCard.parse_bits(['RED']), frozenset([BITS.RED])) - self.assertEqual( - LocationCard.parse_bits([BITS.BLUE]), frozenset([BITS.BLUE])) - self.assertEqual( - LocationCard.parse_bits([BITS.NORTH, 'MSB']), - frozenset([BITS.NORTH, BITS.MSB]))