server/test/unittest_repository.py
changeset 10280 2cdab5e33542
parent 9965 a8769b752299
child 10285 d14db30b90d6
--- a/server/test/unittest_repository.py	Wed Feb 04 15:13:36 2015 +0100
+++ b/server/test/unittest_repository.py	Wed Mar 18 22:43:51 2015 +0100
@@ -52,10 +52,10 @@
             with self.assertRaises(ValidationError) as wraperr:
                 cnx.execute('INSERT Societe S: S nom "Logilab", S type "SSLL", S cp "75013"')
             self.assertEqual(
-                {'cp': u'cp is part of violated unicity constraint',
-                 'nom': u'nom is part of violated unicity constraint',
-                 'type': u'type is part of violated unicity constraint',
-                 'unicity constraint': u'some relations violate a unicity constraint'},
+                {'cp': u'%(KEY-rtype)s is part of violated unicity constraint',
+                 'nom': u'%(KEY-rtype)s is part of violated unicity constraint',
+                 'type': u'%(KEY-rtype)s is part of violated unicity constraint',
+                 '': u'some relations violate a unicity constraint'},
                 wraperr.exception.args[1])
 
     def test_unique_together_schema(self):