Commit b1dbe1d1 authored by davebshow's avatar davebshow
Browse files

added tests for id setter/getter protection

parent 44145302
......@@ -54,6 +54,16 @@ def test_setattr_validation(person):
setattr(person, 'age', 'hello')
def test_set_id_throws(person):
with pytest.raises(exception.ElementError):
person.id = 1
def test_id_class_attr_throws(person_class):
with pytest.raises(exception.ElementError):
person_class.id
# Vertex properties
def test_set_change_vertex_property(person):
assert not person.birthplace
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment