-Remove unicode and use six.text_type

This commit is contained in:
Ayub khan
2019-08-28 13:23:32 +05:00
parent 85f622f0e1
commit da9c71557b
26 changed files with 93 additions and 45 deletions

View File

@@ -7,6 +7,7 @@ from __future__ import absolute_import, division, print_function, unicode_litera
from collections import namedtuple
import json
import six
import ddt
from fs.memoryfs import MemoryFS
@@ -113,7 +114,7 @@ class VerticalBlockTestCase(BaseVerticalBlockTest):
Assert content has/hasn't all the bookmark info.
"""
assertion('bookmark_id', content)
assertion('{},{}'.format(self.username, unicode(self.vertical.location)), content)
assertion('{},{}'.format(self.username, six.text_type(self.vertical.location)), content)
assertion('bookmarked', content)
assertion('show_bookmark_button', content)