diff --git a/common/lib/xmodule/xmodule/tests/test_xblock_wrappers.py b/common/lib/xmodule/xmodule/tests/test_xblock_wrappers.py index c8422c9d51..e6b7f70bd5 100644 --- a/common/lib/xmodule/xmodule/tests/test_xblock_wrappers.py +++ b/common/lib/xmodule/xmodule/tests/test_xblock_wrappers.py @@ -409,7 +409,7 @@ class TestXModuleHandler(TestCase): self.module.handle_ajax = Mock(return_value=response_data) response = self.module.xmodule_handler(self.request) self.assertIsInstance(response, webob.Response) - self.assertEqual(response.body, '{"test_key": "test_value"}') + self.assertEqual(response.body.decode('utf-8'), '{"test_key": "test_value"}') class TestXmlExport(XBlockWrapperTestMixin, TestCase):