equal
deleted
inserted
replaced
4 :copyright: 2001-2009 LOGILAB S.A. (Paris, FRANCE), license is LGPL v2. |
4 :copyright: 2001-2009 LOGILAB S.A. (Paris, FRANCE), license is LGPL v2. |
5 :contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr |
5 :contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr |
6 :license: GNU Lesser General Public License, v2.1 - http://www.gnu.org/licenses |
6 :license: GNU Lesser General Public License, v2.1 - http://www.gnu.org/licenses |
7 """ |
7 """ |
8 from logilab.common.testlib import unittest_main |
8 from logilab.common.testlib import unittest_main |
9 from cubicweb.devtools.apptest import EnvBasedTC |
9 from cubicweb.devtools.testlib import CubicWebTC |
10 |
10 |
11 class HooksTC(EnvBasedTC): |
11 class HooksTC(CubicWebTC): |
12 |
12 |
13 def test_euser_login_stripped(self): |
13 def test_euser_login_stripped(self): |
14 u = self.create_user(' joe ') |
14 u = self.create_user(' joe ') |
15 tname = self.execute('Any L WHERE E login L, E eid %(e)s', |
15 tname = self.execute('Any L WHERE E login L, E eid %(e)s', |
16 {'e': u.eid})[0][0] |
16 {'e': u.eid})[0][0] |