def test_set_properties_only_allows_dict(cur, root): with pytest.raises(TypeError): set_properties(cur, root, [])
def test_set_properties_only_allows_dict(cur, root): with pytest.raises(TypeError): set_properties(cur, root, [])
def test_set_properties(cur, root): properties = {'title': 'My Root Node'} root = set_properties(cur, root.id, properties) assert root.properties == properties
def test_set_properties(cur, root): properties = {'title': 'My Root Node'} root = set_properties(cur, root.id, properties) assert root.properties == properties