def test_parse_move_fails(text, expected_message):
    board = TicTacToeState()
    with pytest.raises(ValueError, match=expected_message):
        board.parse_move(text)
def test_parse_move(text, expected_move):
    board = TicTacToeState()
    move = board.parse_move(text)

    assert move == expected_move