def METHOD_NAME(self):
    # log admin user
    self._logSuperuserIn()
    with self.assertRaises(NoSuchJobError):
        Job.fetch(self.rqjob.job_id, connection=self.scheduler.connection)
    url = reverse("admin:autoemails_rqjob_cancel", args=[self.rqjob.pk])
    rv = self.client.post(url, follow=True)
    self.assertIn(
        "The corresponding job in Redis was probably already executed",
        rv.content.decode("utf-8"),
    )