def test_board_no_state(): """makes default board""" board = """ ------------- | 1 | 2 | 3 | ------------- | 4 | 5 | 6 | ------------- | 7 | 8 | 9 | ------------- """.strip() assert format_board('.' * 9) == board
def test_board_with_state(): """makes board""" board = """ ------------- | 1 | 2 | 3 | ------------- | O | X | X | ------------- | 7 | 8 | 9 | ------------- """.strip() assert format_board('...OXX...') == board