From 908adacdc2b275c5479568b173d6e9573cad0ff1 Mon Sep 17 00:00:00 2001 From: Awais Qureshi Date: Thu, 5 Sep 2019 15:41:36 +0500 Subject: [PATCH] BOM-243 python3 tests failures. --- lms/djangoapps/verify_student/tests/test_models.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lms/djangoapps/verify_student/tests/test_models.py b/lms/djangoapps/verify_student/tests/test_models.py index d1d59baa94..33bf681b75 100644 --- a/lms/djangoapps/verify_student/tests/test_models.py +++ b/lms/djangoapps/verify_student/tests/test_models.py @@ -260,7 +260,10 @@ class TestPhotoVerification(TestVerification, MockS3Mixin, ModuleStoreTestCase): attempt.status = 'denied' attempt.error_msg = '[{"userPhotoReasons": ["Face out of view"]}, {"photoIdReasons": ["Photo hidden/No photo", "ID name not provided"]}]' parsed_error_msg = attempt.parsed_error_msg() - self.assertEquals(parsed_error_msg, ['id_image_missing_name', 'user_image_not_clear', 'id_image_not_clear']) + self.assertEqual( + sorted(parsed_error_msg), + sorted(['id_image_missing_name', 'user_image_not_clear', 'id_image_not_clear']) + ) @ddt.data( 'Not Provided',