# HG changeset patch # User Rémi Cardona # Date 1442854692 -7200 # Node ID 1776c94a74e8c2a42c21f0c1cb2ff0ca83c5d650 # Parent aa3eedba866ce74016eb19e3dac5e7128f681bbd [py3k] unicode → six.text_type diff -r aa3eedba866c -r 1776c94a74e8 web/test/unittest_urlrewrite.py --- a/web/test/unittest_urlrewrite.py Mon Sep 21 18:35:38 2015 +0200 +++ b/web/test/unittest_urlrewrite.py Mon Sep 21 18:58:12 2015 +0200 @@ -16,6 +16,8 @@ # You should have received a copy of the GNU Lesser General Public License along # with CubicWeb. If not, see . +from six import text_type + from logilab.common import tempattr from cubicweb.devtools.testlib import CubicWebTC @@ -137,8 +139,8 @@ rgx_action(r'Any X WHERE X surname %(sn)s, ' 'X firstname %(fn)s', argsgroups=('sn', 'fn'), - transforms={'sn' : unicode.capitalize, - 'fn' : unicode.lower,})), + transforms={'sn' : text_type.capitalize, + 'fn' : text_type.lower,})), ] with self.admin_access.web_request() as req: rewriter = TestSchemaBasedRewriter(req)