'Returns a message detailing the access to the specified unit'

def get_xblock_access_message(self):

    access_message = self.q(css='.access-message').first
    if access_message:
        return access_message.text[0]
    else:
        return ''
