def test_add_children(root):
    """Multiple children will split the root node's space."""
    a, b = create_nodes("a b")
    root.add_child(a)
    root.add_child(b)
    assert root.width == 120
    assert a.width == b.width == 60
    assert root.height == 50
    assert a.height == b.height == 50
    assert a.pos == (0, 0)
    assert b.pos == (60, 0)
    c = Node("c")
    root.add_child(c)
    assert a.width == b.width == c.width == 40
    assert a.pos == (0, 0)
    assert b.pos == (40, 0)
    assert c.pos == (80, 0)
Multiple children will split the root node's space.
test/layouts/test_plasma.py