def test_restore_same_payload(root, grid):
    """Restore a node that's not identical with the removed one but carries
    the same payload.
    """
    a, b, c, d, e = grid
    d.remove()
    new_d = Node("d")
    root.restore(new_d)
    assert root.tree == [a, [b, [c, new_d, e]]]
Restore a node that's not identical with the removed one but carries
    the same payload.
    
test/layouts/test_plasma.py