()
| 69 | |
| 70 | |
| 71 | def test_align_bottom(): |
| 72 | console = Console(file=io.StringIO(), width=10) |
| 73 | console.print(Align("foo", vertical="bottom"), height=5) |
| 74 | expected = " \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(): |