From 198743f7b088695afc709d5e0735e4c136784fd7 Mon Sep 17 00:00:00 2001 From: Ayub khan Date: Thu, 10 Oct 2019 17:17:29 +0500 Subject: [PATCH] BOM test_download_srt_exist test fix need unicode to compare with unicode string --- lms/djangoapps/courseware/tests/test_video_handlers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lms/djangoapps/courseware/tests/test_video_handlers.py b/lms/djangoapps/courseware/tests/test_video_handlers.py index 8c8aca3d27..f9946e8de8 100644 --- a/lms/djangoapps/courseware/tests/test_video_handlers.py +++ b/lms/djangoapps/courseware/tests/test_video_handlers.py @@ -484,7 +484,7 @@ class TestTranscriptDownloadDispatch(TestVideo): def test_download_srt_exist(self, __): request = Request.blank('/download') response = self.item.transcript(request=request, dispatch='download') - self.assertEqual(response.body, 'Subs!') + self.assertEqual(response.body.decode('utf-8'), 'Subs!') self.assertEqual(response.headers['Content-Type'], 'application/x-subrip; charset=utf-8') self.assertEqual(response.headers['Content-Language'], 'en')