def test_print_board(self): self.game['board'] = [ ["O", "O", "X"], ["O", "X", "X"], ["O", "X", "O"], ] expected = """ O | O | X -------------- O | X | X -------------- O | X | O """ self.assertEqual(get_board_as_string(self.game), expected)