()
| 69 | |
| 70 | |
| 71 | def test_align_bottom(): |
| 72 | console = Console(file=io.StringIO(), width=10) |
| 73 | console.print(Align(class="st">"foo", vertical=class="st">"bottom"), height=5) |
| 74 | expected = class="st">" \n \n \n \nfoo \n" |
| 75 | result = console.file.getvalue() |
| 76 | print(repr(result)) |
| 77 | assert result == expected |
| 78 | |
| 79 | |
| 80 | def test_align_center_middle(): |