From 00a1db41093db0de7ce23042ecebd4956869f22a Mon Sep 17 00:00:00 2001 From: Ayub khan Date: Thu, 19 Sep 2019 15:51:20 +0500 Subject: [PATCH] BOM-723 python3 compatibility --- common/djangoapps/student/tests/test_enrollment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/djangoapps/student/tests/test_enrollment.py b/common/djangoapps/student/tests/test_enrollment.py index 90e8306655..46bf5664cf 100644 --- a/common/djangoapps/student/tests/test_enrollment.py +++ b/common/djangoapps/student/tests/test_enrollment.py @@ -171,7 +171,7 @@ class EnrollmentTest(UrlResetMixin, SharedModuleStoreTestCase): with restrict_course(self.course.id) as redirect_url: response = self._change_enrollment('enroll') self.assertEqual(response.status_code, 200) - self.assertEqual(response.content, redirect_url) + self.assertEqual(response.content.decode('utf-8'), redirect_url) # Verify that we weren't enrolled is_enrolled = CourseEnrollment.is_enrolled(self.user, self.course.id)