def test_update_with_multiple_actions(self):
     action1 = Move((0, 0), (3, 1))
     action2 = Move((1, 1), (0, 2))
     state = self.state.move_penguin(action1.get_from_posn(),
                                     action1.get_to_posn())
     state = state.move_penguin(action2.get_from_posn(),
                                action2.get_to_posn())
     # 0   X   W   X
     #   X   0   X   B
     # X   X   X   X
     #   X   R   X   X
     self.adapted_player.set_state(self.state)
     self.adapted_player.update_with_action(action1)
     self.adapted_player.update_with_action(action2)
     self.assertEqual(state,
                      self.adapted_player._LegacyToLogicalPlayer__state)
 def test_update_with_action2(self):
     action = Move((0, 0), (3, 1))
     state = self.state.move_penguin(action.get_from_posn(),
                                     action.get_to_posn())
     # 0   X   X   X
     #   X   W   X   B
     # X   X   X   X
     #   X   R   X   X
     self.adapted_player.set_state(self.state)
     self.adapted_player.update_with_action(action)
     self.assertEqual(state,
                      self.adapted_player._LegacyToLogicalPlayer__state)