def test_add_child(root):
    """Single child fills the entire root node's space."""
    child = Node("a")
    root.add_child(child)
    assert root.children == [child]
    assert child.parent == root
    assert root.width == child.width == 120
    assert root.height == child.height == 50
    assert root.x == child.x == 0
    assert root.y == child.y == 0
Single child fills the entire root node's space.
test/layouts/test_plasma.py