+
+ def test_new_location_no_actions(self):
+ location = LocationCard.new_location({'actions': []})
+ self.assertEqual(location.actions, [])
+
+ def test_new_location_one_action(self):
+ location = LocationCard.new_location({'actions': [
+ {'required_bits': [], 'action_class': 'DoNothing'},
+ ]})
+ [action] = location.actions
+ self.assertEqual(type(action), actions.DoNothing)
+ self.assertEqual(action.required_bits, set())