server/test/unittest_security.py
changeset 10136 c33dcd18e0bb
parent 9990 c84ad981fc4a
parent 10114 6f4b4567b77d
child 10161 138464fc1c33
equal deleted inserted replaced
10135:52e011d08675 10136:c33dcd18e0bb
   166     def test_update_security_3(self):
   166     def test_update_security_3(self):
   167         with self.new_access('iaminusersgrouponly').repo_cnx() as cnx:
   167         with self.new_access('iaminusersgrouponly').repo_cnx() as cnx:
   168             cnx.execute("INSERT Personne X: X nom 'biduuule'")
   168             cnx.execute("INSERT Personne X: X nom 'biduuule'")
   169             cnx.execute("INSERT Societe X: X nom 'looogilab'")
   169             cnx.execute("INSERT Societe X: X nom 'looogilab'")
   170             cnx.execute("SET X travaille S WHERE X nom 'biduuule', S nom 'looogilab'")
   170             cnx.execute("SET X travaille S WHERE X nom 'biduuule', S nom 'looogilab'")
       
   171 
       
   172     def test_insert_immutable_attribute_update(self):
       
   173         with self.admin_access.repo_cnx() as cnx:
       
   174             cnx.create_entity('Old', name=u'Babar')
       
   175             cnx.commit()
       
   176             # this should be equivalent
       
   177             o = cnx.create_entity('Old')
       
   178             o.cw_set(name=u'Celeste')
       
   179             cnx.commit()
   171 
   180 
   172     def test_update_rql_permission(self):
   181     def test_update_rql_permission(self):
   173         with self.admin_access.repo_cnx() as cnx:
   182         with self.admin_access.repo_cnx() as cnx:
   174             cnx.execute("SET A concerne S WHERE A is Affaire, S is Societe")
   183             cnx.execute("SET A concerne S WHERE A is Affaire, S is Societe")
   175             cnx.commit()
   184             cnx.commit()