web/test/unittest_application.py
branchstable
changeset 5030 5238d9a8dfee
parent 4276 e2ed81c20e74
child 5038 90493551b1eb
--- a/web/test/unittest_application.py	Fri Mar 26 06:57:52 2010 +0100
+++ b/web/test/unittest_application.py	Fri Mar 26 08:28:22 2010 +0100
@@ -186,7 +186,7 @@
         self.assertEquals(values['eid'], eid)
         error = forminfo['error']
         self.assertEquals(error.entity, user.eid)
-        self.assertEquals(error.errors['login'], 'required attribute')
+        self.assertEquals(error.errors['login-subject'], 'required attribute')
 
 
     def test_validation_error_dont_loose_subentity_data(self):
@@ -213,8 +213,9 @@
         forminfo = req.get_session_data('view?vid=edition...')
         self.assertEquals(set(forminfo['eidmap']), set('XY'))
         self.assertEquals(forminfo['error'].entity, forminfo['eidmap']['X'])
-        self.assertEquals(forminfo['error'].errors, {'login': 'required attribute',
-                                                     'upassword': 'required attribute'})
+        self.assertEquals(forminfo['error'].errors,
+                          {'login-subject': 'required attribute',
+                           'upassword-subject': 'required attribute'})
         self.assertEquals(forminfo['values'], form)
 
     def _test_cleaned(self, kwargs, injected, cleaned):