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