server/test/unittest_hooks.py
changeset 2746 cfcc7f6121d6
parent 2608 21856eda34f6
child 2773 b2530e3e0afb
child 2920 64322aa83a1d
equal deleted inserted replaced
2745:0dafa29ace1f 2746:cfcc7f6121d6
   196     def test_no_created_by_on_deleted_entity(self):
   196     def test_no_created_by_on_deleted_entity(self):
   197         eid = self.execute('INSERT EmailAddress X: X address "toto@logilab.fr"')[0][0]
   197         eid = self.execute('INSERT EmailAddress X: X address "toto@logilab.fr"')[0][0]
   198         self.execute('DELETE EmailAddress X WHERE X eid %s' % eid)
   198         self.execute('DELETE EmailAddress X WHERE X eid %s' % eid)
   199         self.commit()
   199         self.commit()
   200         self.failIf(self.execute('Any X WHERE X created_by Y, X eid >= %(x)s', {'x': eid}))
   200         self.failIf(self.execute('Any X WHERE X created_by Y, X eid >= %(x)s', {'x': eid}))
       
   201 
   201 
   202 
   202 class CWPropertyHooksTC(RepositoryBasedTC):
   203 class CWPropertyHooksTC(RepositoryBasedTC):
   203 
   204 
   204     def test_unexistant_eproperty(self):
   205     def test_unexistant_eproperty(self):
   205         ex = self.assertRaises(ValidationError,
   206         ex = self.assertRaises(ValidationError,