'Load a module from the test extension by name'

def load_module_by_name(self, fullname):

    origin = self.spec.origin
    loader = self.machinery.ExtensionFileLoader(fullname, origin)
    spec = importlib.util.spec_from_loader(fullname, loader)
    module = importlib.util.module_from_spec(spec)
    loader.exec_module(module)
    return module
