'Helper method to check the CSV file upload notification message.'

def _verify_cohort_by_csv_notification(self, expected_message):

    EmptyPromise((lambda : (1 == len(self.cohort_management_page.get_csv_messages()))), 'Waiting    for    notification').fulfill()
    messages = self.cohort_management_page.get_csv_messages()
    self.assertEquals(expected_message, messages[0])
