'Returns True if the unit is marked as currently visible to students
(meaning that a warning is being displayed).'

@property
def currently_visible_to_students(self):

    warnings = self.q(css='.container-message    .warning')
    if (not warnings.is_present()):
        return False
    warning_text = warnings.first.text[0]
    return (warning_text == 'Caution:    The    last    published    version    of    this    unit    is    live.    By    publishing    changes    you    will    change    the    student    experience.')
