web/test/unittest_application.py
changeset 4276 e2ed81c20e74
parent 4252 6c4f109c2b03
child 5030 5238d9a8dfee
--- a/web/test/unittest_application.py	Tue Jan 19 18:26:22 2010 +0100
+++ b/web/test/unittest_application.py	Wed Jan 20 08:43:41 2010 +0100
@@ -184,9 +184,9 @@
         values = forminfo['values']
         self.assertEquals(values['login-subject:'+eid], '')
         self.assertEquals(values['eid'], eid)
-        errors = forminfo['errors']
-        self.assertEquals(errors.entity, user.eid)
-        self.assertEquals(errors.errors['login'], 'required attribute')
+        error = forminfo['error']
+        self.assertEquals(error.entity, user.eid)
+        self.assertEquals(error.errors['login'], 'required attribute')
 
 
     def test_validation_error_dont_loose_subentity_data(self):
@@ -212,9 +212,9 @@
         path, params = self.expect_redirect(lambda x: self.app_publish(x, 'edit'), req)
         forminfo = req.get_session_data('view?vid=edition...')
         self.assertEquals(set(forminfo['eidmap']), set('XY'))
-        self.assertEquals(forminfo['errors'].entity, forminfo['eidmap']['X'])
-        self.assertEquals(forminfo['errors'].errors, {'login': 'required attribute',
-                                                      'upassword': 'required attribute'})
+        self.assertEquals(forminfo['error'].entity, forminfo['eidmap']['X'])
+        self.assertEquals(forminfo['error'].errors, {'login': 'required attribute',
+                                                     'upassword': 'required attribute'})
         self.assertEquals(forminfo['values'], form)
 
     def _test_cleaned(self, kwargs, injected, cleaned):