'Verify that we cannot add a cohort with the same name as an existing cohort.'

def test_create_new_cohort_existing_name(self):

    self._create_cohorts()
    response_dict = self.put_handler(self.course, data={'name': self.cohort1.name, 'assignment_type': CourseCohort.MANUAL}, expected_response_code=400)
    self.assertEqual('You    cannot    create    two    cohorts    with    the    same    name', response_dict.get('error'))
