cubicweb/web/test/unittest_urlrewrite.py
changeset 12567 26744ad37953
parent 11057 0b59724cb3f2
--- a/cubicweb/web/test/unittest_urlrewrite.py	Fri Apr 05 17:21:14 2019 +0200
+++ b/cubicweb/web/test/unittest_urlrewrite.py	Fri Apr 05 17:58:19 2019 +0200
@@ -16,8 +16,6 @@
 # You should have received a copy of the GNU Lesser General Public License along
 # with CubicWeb.  If not, see <http://www.gnu.org/licenses/>.
 
-from six import text_type
-
 from logilab.common import tempattr
 
 from cubicweb.devtools.testlib import CubicWebTC
@@ -139,8 +137,8 @@
                  rgx_action(r'Any X WHERE X surname %(sn)s, '
                             'X firstname %(fn)s',
                             argsgroups=('sn', 'fn'),
-                            transforms={'sn' : text_type.capitalize,
-                                        'fn' : text_type.lower,})),
+                            transforms={'sn' : str.capitalize,
+                                        'fn' : str.lower,})),
                 ]
         with self.admin_access.web_request() as req:
             rewriter = TestSchemaBasedRewriter(req)