diff -r 928732ec00dd -r fa44db7da2dc web/test/unittest_application.py --- a/web/test/unittest_application.py Thu Jul 17 11:08:56 2014 +0200 +++ b/web/test/unittest_application.py Fri Jul 18 17:35:25 2014 +0200 @@ -18,14 +18,12 @@ """unit tests for cubicweb.web.application""" import base64, Cookie -import sys import httplib -from urllib import unquote from logilab.common.testlib import TestCase, unittest_main from logilab.common.decorators import clear_cache, classproperty -from cubicweb import AuthenticationError, Unauthorized +from cubicweb import AuthenticationError from cubicweb import view from cubicweb.devtools.testlib import CubicWebTC, real_error_handling from cubicweb.devtools.fake import FakeRequest @@ -182,7 +180,7 @@ def test_publish_validation_error(self): with self.admin_access.web_request() as req: - user = self.user() + user = self.user(req) eid = unicode(user.eid) req.form = { 'eid': eid,