def test_box_with_headers_single_align(): print() with Box.thick(header="Test 21", footer="Test 21", align=Alignment.CENTER) as b: print("Test 21") b.sep("Test 21") print("Test 21")
def test_nested_boxes_with_colors_and_rows(): print() with Style(31), Box.fancy(): with Style(35), box(), Style(32), Box.thick(), Style(30, 45): print("Test 14") with Style(33), Box.double(), Style(39): print("Test 14")
def test_colored_set_width_boxes(): print() with Style(39, 44), Box.thick(size=40): with Style(31, 42), box(size=20), Style(30): print("Test 17") with Style(30, 41), box(size=30), Style(39), box(), Style(30, 47): print("Test 17") with Style(33, 49), box(size=35), Style(39): print("Test 17")
def test_box_with_headers(): print() with Box.thick(header="Test 20", footer="Test 20", footer_align=Alignment.RIGHT) as b: print("Test 20") b.sep("Test 20", align=Alignment.CENTER) b.sep(" Test 20", align=Alignment.CENTER) b.sep("Test 20 ", align=Alignment.CENTER) print("Test 20")
def test_thick_box(): print() with Box.thick() as b: print("Test 7") b.sep() print("Test 7")