def test_draw_box_long_tabs(self): text = "bananaaaaaa aaaaaaaaaaaaa aaaaaaaaaaaa aaaaaaaaaaaaaa aaaaaaaaaaaaa" result = draw_box(text) self.assertTrue(len(result) == 6)
def test_draw_box_even(self): text = "banana" result = draw_box(text) self.assertTrue(len(result[2]) == 78)
def test_draw_box_short(self): text = "banana" result = draw_box(text) self.assertTrue(len(result) == 5)
def test_draw_box_empty(self): text = "" result = draw_box(text) self.assertTrue(len(result) == 4)