def METHOD_NAME(self):
    """
    Verify that `get_failed_enrollment_and_user_ids` method returns correct user ids.
    * user id must have a paid enrollment
    * user id must have a failed grade
    """
    for course in self.course_overviews:
        for enrollment_and_user_ids in self.command.get_failed_enrollment_and_user_ids(course):
            for enrollment_id, user_id in enrollment_and_user_ids:
                # user id must have a paid enrollment
                assert CourseEnrollment.objects.filter(
                    id=enrollment_id,
                    course_id=course.id,
                    user_id=user_id,
                    mode__in=PAID_ENROLLMENT_MODES,
                    is_active=True
                ).exists()
                # user id must have a failed grade
                assert PersistentCourseGrade.objects.filter(
                    passed_timestamp__isnull=True,
                    course_id=course.id,
                    user_id=user_id,
                ).exists()