cubicweb/test/unittest_entity.py
changeset 12567 26744ad37953
parent 12508 a8c1ea390400
--- a/cubicweb/test/unittest_entity.py	Fri Apr 05 17:21:14 2019 +0200
+++ b/cubicweb/test/unittest_entity.py	Fri Apr 05 17:58:19 2019 +0200
@@ -20,8 +20,6 @@
 
 from datetime import datetime
 
-from six import text_type
-
 from logilab.common import tempattr
 from logilab.common.decorators import clear_cache
 
@@ -800,11 +798,11 @@
             # ambiguity test
             person2 = req.create_entity('Personne', prenom=u'remi', nom=u'doe')
             person.cw_clear_all_caches()
-            self.assertEqual(person.rest_path(), text_type(person.eid))
-            self.assertEqual(person2.rest_path(), text_type(person2.eid))
+            self.assertEqual(person.rest_path(), str(person.eid))
+            self.assertEqual(person2.rest_path(), str(person2.eid))
             # unique attr with None value (nom in this case)
             friend = req.create_entity('Ami', prenom=u'bob')
-            self.assertEqual(friend.rest_path(), text_type(friend.eid))
+            self.assertEqual(friend.rest_path(), str(friend.eid))
             # 'ref' below is created without the unique but not required
             # attribute, make sur that the unique _and_ required 'ean' is used
             # as the rest attribute