'Test user verification status. If the user enrollment for the course belongs to verified modes
e.g. Verified, Professional then verification is required.'

def test_user_verification_status_success(self):

    CourseEnrollment.enroll(self.user, self.course.id, mode=CourseMode.VERIFIED)
    response = self.client.get(reverse('commerce:user_verification_status'), data={'course_id': self.course.id})
    json_data = json.loads(response.content)
    self.assertEqual(json_data['is_verification_required'], True)
    CourseEnrollment.enroll(self.user, self.course.id, mode=CourseMode.HONOR)
    response = self.client.get(reverse('commerce:user_verification_status'), data={'course_id': self.course.id})
    json_data = json.loads(response.content)
    self.assertEqual(json_data['is_verification_required'], False)
