def METHOD_NAME(self):
    """Verify in case of invalid course key warning is logged."""
    with NamedTemporaryFile() as csv:
        csv = self._write_test_csv(csv, lines=["Demo_Course,river,audit\n"])
        with LogCapture(LOGGER_NAME) as log:
            call_command("bulk_change_enrollment_csv", f"--csv_file_path={csv.name}")
            log.check(
                (
                    LOGGER_NAME,
                    'WARNING',
                    'Invalid or non-existent course id [Demo_Course]'
                )
            )