Updates for TypeError in Python 3

This commit is contained in:
amitvadhel
2019-09-08 13:02:55 +03:00
parent 4c01e204bc
commit 77ac61212b

View File

@@ -93,7 +93,7 @@ class TestOrphan(TestOrphanBase):
self.client.get(
orphan_url,
HTTP_ACCEPT='application/json'
).content
).content.decode('utf-8')
)
self.assertEqual(len(orphans), 3, u"Wrong # {}".format(orphans))
location = course.location.replace(category='chapter', name='OrphanChapter')
@@ -119,7 +119,7 @@ class TestOrphan(TestOrphanBase):
self.client.delete(orphan_url)
orphans = json.loads(
self.client.get(orphan_url, HTTP_ACCEPT='application/json').content
self.client.get(orphan_url, HTTP_ACCEPT='application/json').content.decode('utf-8')
)
self.assertEqual(len(orphans), 0, u"Orphans not deleted {}".format(orphans))