def test_update_with_slice(): node = SpedNode('foo|bar|baz') node.update(slice(0, 2), ['hey', 'joe']) assert node.values == ['hey', 'joe', 'baz']
def test_update(): node = SpedNode('foo|bar|baz') node.update(2, 'qux') assert node.values == ['foo', 'bar', 'qux']