+ location = LocationCard.new_location(
+ {'card_name': 'card', 'actions': []}, None)
+ [action] = location.actions
+ self.assertEqual(type(action), actions.DoNothing)
+ self.assertEqual(action.required_bits, set())
+ self.assertEqual(location.replacement_time, None)
+
+ def test_new_location_replacement_params(self):
+ location = LocationCard.new_location(
+ {'card_name': 'card', 'actions': []},
+ {'chance': 1, 'min': 2, 'max': 2})