BOM-622 Type errors in content matching.

This commit is contained in:
Feanil Patel
2019-09-19 16:18:23 -04:00
parent 4eaf875741
commit 802929fde4
4 changed files with 29 additions and 29 deletions

View File

@@ -331,7 +331,7 @@ class SupportViewEnrollmentsTests(SharedModuleStoreTestCase, SupportViewTestCase
data['course_id'] = six.text_type(self.course.id)
response = self.client.post(self.url, data)
self.assertEqual(response.status_code, 400)
self.assertIsNotNone(re.match(error_message, response.content))
self.assertIsNotNone(re.match(error_message, response.content.decode('utf-8')))
self.assert_enrollment(CourseMode.AUDIT)
self.assertIsNone(ManualEnrollmentAudit.get_manual_enrollment_by_email(self.student.email))