'Returns the rendered student view for the given sequence and the
requested_child parameter.'

def _get_rendered_student_view(self, sequence, requested_child=None, extra_context=None, self_paced=False):

    context = {'requested_child': requested_child}
    if extra_context:
        context.update(extra_context)
    with patch.object(SequenceModule, '_get_course') as mock_course:
        self.course.self_paced = self_paced
        mock_course.return_value = self.course
        return sequence.xmodule_runtime.render(sequence, STUDENT_VIEW, context).content
