Load location deck from file.
[naja.git] / naja / tests / test_actions.py
index 5fe07be4892406f0185ad78153fd3f4b45da282e..fb2c370b4cf11662543479a048564c1066a5951d 100644 (file)
@@ -32,6 +32,10 @@ class TestActions(TestCase):
         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()