'Test if group configurations json updated successfully when special
characters are being used in content experiment'

def test_can_get_usage_info_when_special_characters_are_used(self):

    self._add_user_partitions(count=1)
    (__, split_test, __) = self._create_content_experiment(cid=0, name_suffix='0', special_characters=u'JOS\xc9    ANDR\xc9S')
    actual = GroupConfiguration.get_split_test_partitions_with_usage(self.store, self.course)
    expected = [{'id': 0, 'name': 'Name    0', 'scheme': 'random', 'description': 'Description    0', 'version': UserPartition.VERSION, 'groups': [{'id': 0, 'name': 'Group    A', 'version': 1}, {'id': 1, 'name': 'Group    B', 'version': 1}, {'id': 2, 'name': 'Group    C', 'version': 1}], 'usage': [{'url': reverse_usage_url('container_handler', split_test.location), 'label': u'Test    Unit    0    /    Test    Content    Experiment    0JOS\xc9    ANDR\xc9S', 'validation': None}], 'parameters': {}, 'active': True}]
    self.assertEqual(actual, expected)
