equal
deleted
inserted
replaced
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 |