def METHOD_NAME(self):
    """
    Verifies behavior of the management command when it is run with an instructor-paced course.
    """
    expected_exception_message = (
        f"The course '{self.instructor_paced_course1.id}' is instructor-paced and the certificate availability "
        "date can be adjusted via Studio in the UI. Aborting operation."
    )
    with self.assertRaises(CommandError) as error:
        call_command(
            "clean_stale_certificate_available_dates",
            "--course-runs",
            self.instructor_paced_course1.id,
            "--delete"
        )
    assert str(error.exception) == expected_exception_message