import unittest
from source.carpenter_shop import *

class CarpenterTestCase(unittest.TestCase):

    def setUp(self):
        self.carpenter = Carpenter()
        self.square_4 = '\033[30m 5 \033[0m'
        self.mock_board = [1,10,1, 0,10,0, 1,0,10]
        self.rendered_board = '''
\033[91m X \033[0m|\033[34m O \033[0m|\033[91m X \033[0m
---+---+---
\033[30m 4 \033[0m|\033[34m O \033[0m|\033[30m 6 \033[0m
---+---+---
\033[91m X \033[0m|\033[30m 8 \033[0m|\033[34m O \033[0m
'''

    def test_rendered_board_is_rendered_well(self):
        test_yields = self.carpenter.render_board(self.mock_board)
        self.assertEqual(test_yields, self.rendered_board)

    def test_number_square_numbers_square(self):
        test_yields = self.carpenter.number_square(4)
        self.assertEqual(test_yields, self.square_4)

    def test_stringify_board_stringifies_the_board(self):
        pass

    def test_construct_board_builds_the_board(self):
        pass

    def test_assemble_rack_builds_a_rack(self):
        pass

    def test_assemble_rows_builds_a_list_of_rows(self):
        pass

    def test_build_proto_row_builds_a_list_of_row_bits(self):
        pass

@@ -245,16 +245,276 @@
 1,0,10%5D%0A
+        self.stringy_board = %5B'%5C033%5B91m X %5C033%5B0m',%0A         '%5C033%5B34m O %5C033%5B0m','%5C033%5B91m X %5C033%5B0m',%0A         '%5C033%5B30m 4 %5C033%5B0m','%5C033%5B34m O %5C033%5B0m',%0A         '%5C033%5B30m 6 %5C033%5B0m','%5C033%5B91m X %5C033%5B0m',%0A         '%5C033%5B30m 8 %5C033%5B0m','%5C033%5B34m O %5C033%5B0m'%5D%0A
         
@@ -1133,36 +1133,137 @@
 (self):%0A        
-pass
+test = self.carpenter.stringify_board(self.mock_board)%0A        self.assertEqual(test, self.stringy_board)
 %0A%0A    def test_c

assert that stringify_board makes a stringy list