'Valid inputs for section_type: MembershipPageAutoEnrollSection.NOTIFICATION_WARNING /
MembershipPageAutoEnrollSection.NOTIFICATION_ERROR
Returns the first message from the list of messages in the {section_type} section.'

def first_notification_message(self, section_type):

    error_message_selector = ('.auto_enroll_csv    .results    .message-%s    li.summary-item' % section_type)
    self.wait_for_element_presence(error_message_selector, ('%s    message' % section_type.title()))
    return self.q(css=error_message_selector).text[0]
