Exemplo n.º 1
0
def test_parse_move_fails(text, expected_message):
    state = OthelloState()
    with pytest.raises(ValueError, match=expected_message):
        state.parse_move(text)
Exemplo n.º 2
0
def test_parse_move(text, expected_move):
    board = OthelloState()
    move = board.parse_move(text)

    assert move == expected_move