server/test/unittest_undo.py
changeset 8594 001159e2e4f3
parent 8556 bbe0d6985e59
child 8694 d901c36bcfce
equal deleted inserted replaced
8593:41259e1f9d48 8594:001159e2e4f3
   226         self.assertUndoTransaction(txuuid, [
   226         self.assertUndoTransaction(txuuid, [
   227             u"Can't restore relation in_group, object entity "
   227             u"Can't restore relation in_group, object entity "
   228             "%s doesn't exist anymore." % g.eid])
   228             "%s doesn't exist anymore." % g.eid])
   229         with self.assertRaises(ValidationError) as cm:
   229         with self.assertRaises(ValidationError) as cm:
   230             self.commit()
   230             self.commit()
   231         cm.exception.tr(unicode)
   231         cm.exception.translate(unicode)
   232         self.assertEqual(cm.exception.entity, self.toto.eid)
   232         self.assertEqual(cm.exception.entity, self.toto.eid)
   233         self.assertEqual(cm.exception.errors,
   233         self.assertEqual(cm.exception.errors,
   234                           {'in_group-subject': u'at least one relation in_group is '
   234                           {'in_group-subject': u'at least one relation in_group is '
   235                            'required on CWUser (%s)' % self.toto.eid})
   235                            'required on CWUser (%s)' % self.toto.eid})
   236 
   236