projects
/
naja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
More location deck things.
[naja.git]
/
naja
/
tests
/
test_actions.py
diff --git
a/naja/tests/test_actions.py
b/naja/tests/test_actions.py
index 5fe07be4892406f0185ad78153fd3f4b45da282e..fb2c370b4cf11662543479a048564c1066a5951d 100644
(file)
--- a/
naja/tests/test_actions.py
+++ b/
naja/tests/test_actions.py
@@
-32,6
+32,10
@@
class TestActions(TestCase):
check_available(set([BITS.MSB]), [], False)
check_available(set([BITS.MSB]), [BITS.MSB], True)
check_available(set([BITS.MSB]), [], False)
check_available(set([BITS.MSB]), [BITS.MSB], True)
+ def test_bits_translation(self):
+ action = actions.LocationAction(set([BITS.NORTH, 'MSB']))
+ self.assertEqual(action.required_bits, set([BITS.NORTH, BITS.MSB]))
+
def test_DoNothing(self):
board = self.make_board()
state_before = board.export()
def test_DoNothing(self):
board = self.make_board()
state_before = board.export()