equal
deleted
inserted
replaced
151 def test_update_security_3(self): |
151 def test_update_security_3(self): |
152 with self.new_access('iaminusersgrouponly').repo_cnx() as cnx: |
152 with self.new_access('iaminusersgrouponly').repo_cnx() as cnx: |
153 cnx.execute("INSERT Personne X: X nom 'biduuule'") |
153 cnx.execute("INSERT Personne X: X nom 'biduuule'") |
154 cnx.execute("INSERT Societe X: X nom 'looogilab'") |
154 cnx.execute("INSERT Societe X: X nom 'looogilab'") |
155 cnx.execute("SET X travaille S WHERE X nom 'biduuule', S nom 'looogilab'") |
155 cnx.execute("SET X travaille S WHERE X nom 'biduuule', S nom 'looogilab'") |
|
156 |
|
157 def test_insert_immutable_attribute_update(self): |
|
158 with self.admin_access.repo_cnx() as cnx: |
|
159 cnx.create_entity('Old', name=u'Babar') |
|
160 cnx.commit() |
|
161 # this should be equivalent |
|
162 o = cnx.create_entity('Old') |
|
163 o.cw_set(name=u'Celeste') |
|
164 cnx.commit() |
156 |
165 |
157 def test_update_rql_permission(self): |
166 def test_update_rql_permission(self): |
158 with self.admin_access.repo_cnx() as cnx: |
167 with self.admin_access.repo_cnx() as cnx: |
159 cnx.execute("SET A concerne S WHERE A is Affaire, S is Societe") |
168 cnx.execute("SET A concerne S WHERE A is Affaire, S is Societe") |
160 cnx.commit() |
169 cnx.commit() |