'Scenario: Update existing cohort settings(cohort name, assignment type)
Given I have a course with a user in the course
When I add a new cohort with random assignment type to the course via the LMS instructor dashboard
Then the new cohort is displayed and has no users in it
And assignment type of displayed cohort is "random"
And when I add the user to the new cohort
Then the cohort has 1 user
And appropriate events have been emitted
Then I select the cohort (that you just created) from existing cohorts
Then I change its name and assignment type set to "manual"
Then I Save the settings
And cohort with new name is present in cohorts dropdown list
And cohort assignment type should be "manual"'

def test_update_existing_cohort_settings(self):

    cohort_name = str(uuid.uuid4().get_hex()[0:20])
    new_cohort_name = '{old}__NEW'.format(old=cohort_name)
    self._verify_cohort_settings(cohort_name=cohort_name, assignment_type='random', new_cohort_name=new_cohort_name, new_assignment_type='manual', verify_updated=True)
