def test_invalid_course_run_key_enrollment(self): course_run = { 'key': 'cr_key', } enrollment_ids = {CourseKey.from_string('course-v1:DelftX+NGIx+RA0')} self.assertFalse(is_enrolled_in_course_run(course_run, enrollment_ids))