'Sets up the stub sequence module for testing.'

def _set_up_block(self, parent, index_in_parent):

    block = parent.get_children()[index_in_parent]
    self._set_up_module_system(block)
    block.xmodule_runtime._services['bookmarks'] = Mock()
    block.xmodule_runtime._services['user'] = StubUserService()
    block.xmodule_runtime.xmodule_instance = getattr(block, '_xmodule', None)
    block.parent = parent.location
    return block
