def METHOD_NAME(self):
    worker = FakeWorker()
    dialog_watcher = DialogWatcher(
        translate("AddonsInstaller", "Removing Addon"),
        QtWidgets.QDialogButtonBox.Cancel,
    )
    QtCore.QTimer.singleShot(1000, worker.stop)  # If the test fails, this kills the "worker"
    self.uninstaller_gui._confirm_uninstallation = lambda: True
    self.uninstaller_gui._run_uninstaller = worker.work
    self.uninstaller_gui._finalize = lambda: None
    self.uninstaller_gui.dialog_timer.setInterval(1)  # To speed up the test, only wait 1ms
    self.uninstaller_gui.run()  # Blocks once it hits the fake worker
    self.assertTrue(dialog_watcher.dialog_found, "Failed to find the expected dialog box")
    self.assertTrue(dialog_watcher.button_found, "Failed to find the expected button")
    worker.stop()