Skip to content
Snippets Groups Projects
Commit 77ac6121 authored by amitvadhel's avatar amitvadhel
Browse files

Updates for TypeError in Python 3

parent 4c01e204
No related branches found
No related tags found
No related merge requests found
......@@ -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))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment