def load_module(name):
        """Import or reload tutorial module as needed."""
        target = 'cherrypy.tutorial.' + name
        if target in sys.modules:
            module = importlib.reload(sys.modules[target])
        else:
            module = importlib.import_module(target)
        return module
Import or reload tutorial module as needed.
cherrypy/test/test_tutorials.py