'Test if multiple experiments are present in usage info when they use same
group configuration.'

def test_can_use_one_configuration_in_multiple_experiments(self):

    self._add_user_partitions()
    (__, split_test, __) = self._create_content_experiment(cid=0, name_suffix='0')
    (__, split_test1, __) = self._create_content_experiment(cid=0, name_suffix='1')
    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': '/container/{}'.format(split_test.location), 'label': 'Test    Unit    0    /    Test    Content    Experiment    0', 'validation': None}, {'url': '/container/{}'.format(split_test1.location), 'label': 'Test    Unit    1    /    Test    Content    Experiment    1', 'validation': None}], 'parameters': {}, 'active': True}]
    self.assertEqual(actual, expected)
