server/test/unittest_security.py
changeset 10114 6f4b4567b77d
parent 9984 793377697c81
child 10136 c33dcd18e0bb
child 10156 57b68193413c
--- a/server/test/unittest_security.py	Tue Dec 09 15:18:58 2014 +0100
+++ b/server/test/unittest_security.py	Wed Dec 17 10:55:53 2014 +0100
@@ -154,6 +154,15 @@
             cnx.execute("INSERT Societe X: X nom 'looogilab'")
             cnx.execute("SET X travaille S WHERE X nom 'biduuule', S nom 'looogilab'")
 
+    def test_insert_immutable_attribute_update(self):
+        with self.admin_access.repo_cnx() as cnx:
+            cnx.create_entity('Old', name=u'Babar')
+            cnx.commit()
+            # this should be equivalent
+            o = cnx.create_entity('Old')
+            o.cw_set(name=u'Celeste')
+            cnx.commit()
+
     def test_update_rql_permission(self):
         with self.admin_access.repo_cnx() as cnx:
             cnx.execute("SET A concerne S WHERE A is Affaire, S is Societe")