()
| 14 | |
| 15 | |
| 16 | def test_add_split(): |
| 17 | layout = Layout() |
| 18 | layout.split(Layout(), Layout()) |
| 19 | assert len(layout.children) == 2 |
| 20 | layout.add_split(Layout(name="foo")) |
| 21 | assert len(layout.children) == 3 |
| 22 | assert layout.children[2].name == "foo" |
| 23 | |
| 24 | |
| 25 | def test_unsplit(): |