def METHOD_NAME(self):
    self.database_upgrade.status = DatabaseUpgrade.ERROR
    self.database_upgrade.can_do_retry = True
    url = self.database_upgrade.database.get_upgrade_retry_url()
    button = self.admin.maintenance_action(self.database_upgrade)
    self.assertIn(url, button)