def METHOD_NAME(self) -> Iterator[TUrlOrNamedUrl]:
    if not re.match(r"^\w+$", self.pluginname):
        raise ValueError("Missing plugin name")
    try:
        module = importlib.import_module(f"tests.plugins.test_{self.pluginname}")
    except Exception as err:
        raise ImportError(f"Could not load test module of plugin {self.pluginname}: {err}") from err
    PluginCanHandleUrlSubclass: Optional[Type[PluginCanHandleUrl]] = next(
        (
            item
            for item in module.__dict__.values()
            if type(item) is type and item is not PluginCanHandleUrl and issubclass(item, PluginCanHandleUrl)
        ),
        None,
    )
    if not PluginCanHandleUrlSubclass:
        raise RuntimeError("Could not find URL test class inheriting from PluginCanHandleURL")
    yield from PluginCanHandleUrlSubclass.urls_all()