server/test/unittest_security.py
changeset 10136 c33dcd18e0bb
parent 9990 c84ad981fc4a
parent 10114 6f4b4567b77d
child 10161 138464fc1c33
--- a/server/test/unittest_security.py	Wed Jan 07 14:07:17 2015 +0100
+++ b/server/test/unittest_security.py	Wed Jan 07 15:01:23 2015 +0100
@@ -169,6 +169,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")