'Scenario: the instructor can upload a file with user and cohort assignments, using both emails and usernames.
Given I have a course with two cohorts defined
And I add another cohort with a unicode name
When I go to the cohort management section of the instructor dashboard
I can upload a CSV file with assignments of users to the unicode cohort via both usernames and emails
Then I can download a file with results
TODO: refactor events verification to handle this scenario. Events verification assumes movements
between other cohorts (manual and auto).'

def test_cohort_by_csv_unicode(self):

    unicode_hello_in_korean = u'\xdf\xdf\xdf\xdf\xdf\xdf'
    self._verify_cohort_settings(cohort_name=unicode_hello_in_korean, assignment_type=None)
    csv_contents = [['username', 'email', 'cohort'], [self.instructor_name, '', unicode_hello_in_korean], ['', self.student_email, unicode_hello_in_korean], [self.other_student_name, '', unicode_hello_in_korean]]
    filename = 'cohort_unicode_name.csv'
    self._create_csv_file(filename, csv_contents)
    self._verify_csv_upload_acceptable_file(filename, skip_events=True)
