From 70b4004be88bbafc1d2d29c2dcbe1f9f661e5ac5 Mon Sep 17 00:00:00 2001 From: Ayub khan Date: Wed, 28 Aug 2019 15:07:29 +0500 Subject: [PATCH] BOM-335 py3 unittest fix --- lms/djangoapps/verify_student/tests/test_views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lms/djangoapps/verify_student/tests/test_views.py b/lms/djangoapps/verify_student/tests/test_views.py index 67e8a85f17..b607d3f174 100644 --- a/lms/djangoapps/verify_student/tests/test_views.py +++ b/lms/djangoapps/verify_student/tests/test_views.py @@ -1529,7 +1529,7 @@ class TestSubmitPhotosForVerification(TestCase): } params[invalid_param] = "" response = self._submit_photos(expected_status_code=400, **params) - self.assertEqual(response.content, "Image data is not valid.") + self.assertEqual(response.content.decode('utf-8'), "Image data is not valid.") def test_invalid_name(self): response = self._submit_photos(