test fixes
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 19 Jan 2010 14:41:23 +0100
changeset 4266 6bee6f0892e0
parent 4265 0912f111b028
child 4267 3ea88c8e7d7f
test fixes
web/test/unittest_views_basecontrollers.py
--- a/web/test/unittest_views_basecontrollers.py	Tue Jan 19 14:41:19 2010 +0100
+++ b/web/test/unittest_views_basecontrollers.py	Tue Jan 19 14:41:23 2010 +0100
@@ -190,7 +190,7 @@
                     'upassword-subject:X': u'toto',
                     }
         ex = self.assertRaises(ValidationError, self.ctrl_publish, req)
-        self.assertEquals(ex.errors, {'upassword': u'password and confirmation don\'t match'})
+        self.assertEquals(ex.errors, {'upassword-subject': u'password and confirmation don\'t match'})
         req = self.request()
         req.form = {'__cloned_eid:X': u(user.eid),
                     'eid': 'X', '__type:X': 'CWUser',
@@ -200,7 +200,7 @@
                     'upassword-subject-confirm:X': u'tutu',
                     }
         ex = self.assertRaises(ValidationError, self.ctrl_publish, req)
-        self.assertEquals(ex.errors, {'upassword': u'password and confirmation don\'t match'})
+        self.assertEquals(ex.errors, {'upassword-subject': u'password and confirmation don\'t match'})
 
 
     def test_interval_bound_constraint_success(self):