def test_display():
    board = TicTacToeState(spaces=np.array([[1, 0, 0],
                                            [0, -1, 0],
                                            [0, 0, 0]]))
    expected_text = """\
X..
.O.
...
"""
    text = board.display()

    assert text == expected_text
def test_display_coordinates():
    board = TicTacToeState(spaces=np.array([[1, 0, 0],
                                            [0, -1, 0],
                                            [0, 0, 0]]))
    expected_text = """\
  ABC
1 X..
2 .O.
3 ...
"""
    text = board.display(show_coordinates=True)

    assert text == expected_text