'Assert that we can get enrollment mode and verification status'

def test_enrolled_students_enrollment_verification(self):

    query_features = ('enrollment_mode', 'verification_status')
    userreports = enrolled_students_features(self.course_key, query_features)
    self.assertEqual(len(userreports), len(self.users))
    for userreport in userreports:
        self.assertEqual(set(userreport.keys()), set(query_features))
        self.assertIn(userreport['enrollment_mode'], ['audit'])
        self.assertIn(userreport['verification_status'], ['N/A'])
    with patch('student.models.CourseEnrollment.enrollment_mode_for_user') as enrollment_patch:
        with patch('lms.djangoapps.verify_student.models.SoftwareSecurePhotoVerification.verification_status_for_user') as verify_patch:
            enrollment_patch.return_value = ['verified']
            verify_patch.return_value = 'dummy    verification    status'
            userreports = enrolled_students_features(self.course_key, query_features)
            self.assertEqual(len(userreports), len(self.users))
            for userreport in userreports:
                self.assertEqual(set(userreport.keys()), set(query_features))
                self.assertIn(userreport['enrollment_mode'], ['verified'])
                self.assertIn(userreport['verification_status'], ['dummy    verification    status'])
