--- a/web/test/unittest_views_basecontrollers.py Fri Feb 13 15:09:36 2015 +0100
+++ b/web/test/unittest_views_basecontrollers.py Fri Feb 13 15:10:43 2015 +0100
@@ -548,7 +548,7 @@
self.assertIn('_cwmsgid', params)
eid = req.create_entity('EmailAddress', address=u'hop@logilab.fr').eid
req.execute('SET X use_email E WHERE E eid %(e)s, X eid %(x)s',
- {'x': self.session.user.eid, 'e': eid})
+ {'x': req.user.eid, 'e': eid})
req.cnx.commit()
req.form = {'eid': unicode(eid), '__type:%s'%eid: 'EmailAddress',
'__action_delete': ''}