def METHOD_NAME(self, url: QUrl, force: bool = False):
    """Load a given QUrl.
    Args:
        url: The QUrl to load.
        force: Whether to force loading even if the file is invalid.
    """
    with self.qtbot.wait_signal(self.tab.load_finished,
                               timeout=2000) as blocker:
        self.tab.METHOD_NAME(url)
    if not force:
        assert blocker.args == [True]