'Helper method for testing validation information present after add_usage_info.'

@patch('xmodule.split_test_module.SplitTestDescriptor.validate_split_test')
def verify_validation_add_usage_info(self, expected_result, mocked_message, mocked_validation_messages):

    self._add_user_partitions()
    split_test = self._create_content_experiment(cid=0, name_suffix='0')[1]
    validation = StudioValidation(split_test.location)
    validation.add(mocked_message)
    mocked_validation_messages.return_value = validation
    group_configuration = GroupConfiguration.get_split_test_partitions_with_usage(self.store, self.course)[0]
    self.assertEqual(expected_result.to_json(), group_configuration['usage'][0]['validation'])
