server/test/unittest_repository.py
changeset 10285 d14db30b90d6
parent 10280 2cdab5e33542
child 10301 729f36a1bcfa
--- a/server/test/unittest_repository.py	Mon Mar 23 14:28:48 2015 +0100
+++ b/server/test/unittest_repository.py	Wed Mar 25 07:57:38 2015 +0100
@@ -499,6 +499,13 @@
             cnx.commit()
             self.assertEqual(len(c.reverse_fiche), 1)
 
+    def test_delete_computed_relation_nonregr(self):
+        with self.admin_access.repo_cnx() as cnx:
+            c = cnx.create_entity('Personne', nom=u'Adam', login_user=cnx.user.eid)
+            cnx.commit()
+            c.cw_delete()
+            cnx.commit()
+
     def test_cw_set_in_before_update(self):
         # local hook
         class DummyBeforeHook(Hook):