[test] fix failure introduced by yams'changeset 644:f9c79356b758
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 26 May 2011 08:57:15 +0200
changeset 7442 aee55fb4633c
parent 7441 b70f4f4c8620
child 7444 9bb8f89fd31c
[test] fix failure introduced by yams'changeset 644:f9c79356b758
web/test/unittest_views_basecontrollers.py
--- a/web/test/unittest_views_basecontrollers.py	Thu May 26 08:32:15 2011 +0200
+++ b/web/test/unittest_views_basecontrollers.py	Thu May 26 08:57:15 2011 +0200
@@ -238,7 +238,7 @@
                 }
         with self.assertRaises(ValidationError) as cm:
             self.ctrl_publish(req)
-        self.assertEqual(cm.exception.errors, {'amount-subject': 'value must be >= 0'})
+        self.assertEqual(cm.exception.errors, {'amount-subject': 'value -10 must be >= 0'})
         req = self.request(rollbackfirst=True)
         req.form = {'eid': ['X'],
                     '__type:X': 'Salesterm',
@@ -248,7 +248,7 @@
                     }
         with self.assertRaises(ValidationError) as cm:
             self.ctrl_publish(req)
-        self.assertEqual(cm.exception.errors, {'amount-subject': 'value must be <= 100'})
+        self.assertEqual(cm.exception.errors, {'amount-subject': 'value 110 must be <= 100'})
         req = self.request(rollbackfirst=True)
         req.form = {'eid': ['X'],
                     '__type:X': 'Salesterm',