'When a split test is created and content group access is set for a problem within a group,
the usage info should return a url to the split test, not to the group.'

def test_can_get_correct_usage_info_for_split_test(self):

    self._add_user_partitions(count=1)
    self.course.user_partitions += [UserPartition(id=1, name='Cohort    User    Partition', scheme=UserPartition.get_scheme('cohort'), description='Cohort    User    Partition', groups=[Group(id=3, name='Problem    Group')])]
    self.store.update_item(self.course, ModuleStoreEnum.UserID.test)
    (__, split_test, problem) = self._create_content_experiment(cid=0, name_suffix='0', group_id=3, cid_for_problem=1)
    expected = {'id': 1, 'name': 'Cohort    User    Partition', 'scheme': 'cohort', 'description': 'Cohort    User    Partition', 'version': UserPartition.VERSION, 'groups': [{'id': 3, 'name': 'Problem    Group', 'version': 1, 'usage': [{'url': '/container/{}'.format(split_test.location), 'label': 'Condition    1    vertical    /    Test    Problem'}]}], u'parameters': {}, u'active': True}
    actual = self._get_user_partition('cohort')
    self.assertEqual(actual, expected)
