def test__mark_cell_by_coordinates__adds_mark_to_cells(self):
        game = Game('test-grid', uuid.uuid4(), PLAYER_X, PLAYER_O)
        game.mark_cell_by_coordinates(1, 1, X_MARK)

        actual_mark = game.get_cell_by_coordinates(1, 1)

        assert actual_mark.value == X_MARK
    def test__get_cell_by_coordinates__returns_none_if_coordinates_are_empty(self):
        existing_mark_1 = Mark(0, 0, X_MARK)
        game = Game('test-grid', uuid.uuid4(), PLAYER_X, PLAYER_O)
        game.cells.append(existing_mark_1)

        actual_mark = game.get_cell_by_coordinates(1, 1)

        assert not actual_mark
    def test__get_cell_by_coordinates__returns_mark_at_coordinates(self):
        existing_mark_1 = Mark(0, 0, X_MARK)
        existing_mark_2 = Mark(1, 1, O_MARK)
        game = Game('test-game', uuid.uuid4(), PLAYER_X, PLAYER_O)
        game.cells.append(existing_mark_1)
        game.cells.append(existing_mark_2)

        actual_mark = game.get_cell_by_coordinates(1, 1)

        assert actual_mark == existing_mark_2