From b1dbe1d114151fc5c9f89032ec380cae4774ad07 Mon Sep 17 00:00:00 2001
From: davebshow <davebshow@gmail.com>
Date: Mon, 1 Aug 2016 15:52:04 -0400
Subject: [PATCH] added tests for id setter/getter protection

---
 tests/test_properties.py | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/tests/test_properties.py b/tests/test_properties.py
index fae77aa..d2aad7d 100644
--- a/tests/test_properties.py
+++ b/tests/test_properties.py
@@ -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
-- 
GitLab