web/test/unittest_application.py
changeset 10734 e64738c093e5
parent 10605 61521bee2b68
child 10735 cb83ba66fa61
--- a/web/test/unittest_application.py	Mon Oct 12 21:06:45 2015 +0200
+++ b/web/test/unittest_application.py	Tue Sep 22 15:37:31 2015 +0200
@@ -19,6 +19,7 @@
 
 import base64
 
+from six import text_type
 from six.moves import http_client
 from six.moves.http_cookies import SimpleCookie
 
@@ -182,7 +183,7 @@
     def test_publish_validation_error(self):
         with self.admin_access.web_request() as req:
             user = self.user(req)
-            eid = unicode(user.eid)
+            eid = text_type(user.eid)
             req.form = {
                 'eid':       eid,
                 '__type:'+eid:    'CWUser', '_cw_entity_fields:'+eid: 'login-subject',