'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 a cohort from existing cohorts
Then I set its name as empty string and assignment type set to "manual"
And I click on Save button
Then I should see an error message'

def test_update_existing_cohort_settings_with_empty_cohort_name(self):

    cohort_name = str(uuid.uuid4().get_hex()[0:20])
    new_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)
