コード例 #1
0
def test_set_properties_only_allows_dict(cur, root):
    with pytest.raises(TypeError):
        set_properties(cur, root, [])
コード例 #2
0
def test_set_properties_only_allows_dict(cur, root):
    with pytest.raises(TypeError):
        set_properties(cur, root, [])
コード例 #3
0
def test_set_properties(cur, root):
    properties = {'title': 'My Root Node'}
    root = set_properties(cur, root.id, properties)
    assert root.properties == properties
コード例 #4
0
def test_set_properties(cur, root):
    properties = {'title': 'My Root Node'}
    root = set_properties(cur, root.id, properties)
    assert root.properties == properties