'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
When I go to the cohort management section of the instructor dashboard
I can upload a CSV file with assignments of users to cohorts via both usernames and emails
Then I can download a file with results
And appropriate events have been emitted'

def test_cohort_by_csv_both_columns(self):

    csv_contents = [['username', 'email', 'ignored_column', 'cohort'], [self.instructor_name, '', 'June', 'ManualCohort1'], ['', self.student_email, 'Spring', 'AutoCohort1'], [self.other_student_name, '', 'Fall', 'ManualCohort1']]
    filename = 'cohort_csv_both_columns_1.csv'
    self._create_csv_file(filename, csv_contents)
    self._verify_csv_upload_acceptable_file(filename)
