projects
/
naja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2208db6
)
de-heath the tests
author
Neil
<neil@dip.sun.ac.za>
Mon, 12 May 2014 09:05:44 +0000
(11:05 +0200)
committer
Neil
<neil@dip.sun.ac.za>
Mon, 12 May 2014 09:05:44 +0000
(11:05 +0200)
naja/tests/test_actions.py
patch
|
blob
|
history
diff --git
a/naja/tests/test_actions.py
b/naja/tests/test_actions.py
index 69ed8819ed54c80be1d87e89fe6eef8f931f931b..5fe07be4892406f0185ad78153fd3f4b45da282e 100644
(file)
--- a/
naja/tests/test_actions.py
+++ b/
naja/tests/test_actions.py
@@
-42,7
+42,7
@@
class TestActions(TestCase):
def test_LoseHealthOrMSB_MSB_clear(self):
board = self.make_board()
state_before = board.export()
def test_LoseHealthOrMSB_MSB_clear(self):
board = self.make_board()
state_before = board.export()
- actions.LoseHeathOrMSB(set()).perform_action(board, None)
+ actions.LoseHea
l
thOrMSB(set()).perform_action(board, None)
state_after = board.export()
self.assertEqual(state_after['health'], state_before['health'] - 1)
state_after = board.export()
self.assertEqual(state_after['health'], state_before['health'] - 1)
@@
-53,7
+53,7
@@
class TestActions(TestCase):
def test_LoseHealthOrMSB_MSB_set(self):
board = self.make_board(player_bits=[BITS.MSB])
state_before = board.export()
def test_LoseHealthOrMSB_MSB_set(self):
board = self.make_board(player_bits=[BITS.MSB])
state_before = board.export()
- actions.LoseHeathOrMSB(set()).perform_action(board, None)
+ actions.LoseHea
l
thOrMSB(set()).perform_action(board, None)
state_after = board.export()
self.assertEqual(board.player.bits.check_bit(BITS.MSB), False)
state_after = board.export()
self.assertEqual(board.player.bits.check_bit(BITS.MSB), False)