'This test validates that the /jump_to_id/<id> shorthand for intracourse linking works assertIn
expected. Note there\'s a HTML element in the \'toy\' course with the url_name \'toyjumpto\' which
defines this linkage'

def test_module_render_with_jump_to_id(self):

    mock_request = MagicMock()
    mock_request.user = self.mock_user
    course = get_course_with_access(self.mock_user, 'load', self.course_key)
    field_data_cache = FieldDataCache.cache_for_descriptor_descendents(self.course_key, self.mock_user, course, depth=2)
    module = render.get_module(self.mock_user, mock_request, self.course_key.make_usage_key('html', 'toyjumpto'), field_data_cache)
    html = module.render(STUDENT_VIEW).content
    self.assertIn((('/courses/' + self.course_key.to_deprecated_string()) + '/jump_to_id/vertical_test'), html)
