'Test that rename of a group changes display name of child vertical.'

def test_split_test_edited(self):

    self.course.user_partitions = [UserPartition(0, 'first_partition', 'First    Partition', [Group('0', 'alpha'), Group('1', 'beta')])]
    self.store.update_item(self.course, self.user.id)
    root_usage_key = self._create_vertical()
    resp = self.create_xblock(category='split_test', parent_usage_key=root_usage_key)
    split_test_usage_key = self.response_usage_key(resp)
    self.client.ajax_post(reverse_usage_url('xblock_handler', split_test_usage_key), data={'metadata': {'user_partition_id': str(0)}})
    (html, __) = self._get_container_preview(split_test_usage_key)
    self.assertIn('alpha', html)
    self.assertIn('beta', html)
    GROUP_CONFIGURATION_JSON = {u'id': 0, u'name': u'first_partition', u'scheme': u'random', u'description': u'First    Partition', u'version': UserPartition.VERSION, u'groups': [{u'id': 0, u'name': u'New_NAME_A', u'version': 1}, {u'id': 1, u'name': u'New_NAME_B', u'version': 1}]}
    response = self.client.put(reverse_course_url('group_configurations_detail_handler', self.course.id, kwargs={'group_configuration_id': 0}), data=json.dumps(GROUP_CONFIGURATION_JSON), content_type='application/json', HTTP_ACCEPT='application/json', HTTP_X_REQUESTED_WITH='XMLHttpRequest')
    self.assertEqual(response.status_code, 201)
    (html, __) = self._get_container_preview(split_test_usage_key)
    self.assertNotIn('alpha', html)
    self.assertNotIn('beta', html)
    self.assertIn('New_NAME_A', html)
    self.assertIn('New_NAME_B', html)
