def METHOD_NAME(self):
    past_announcement = baker.make(Announcement,
                                   datetime_released=timezone.now() - timedelta(days=90))
    self.assertTrue(past_announcement.draft)
    self.assertFalse(past_announcement.auto_publish)
    task_result = tasks.publish_announcement.apply(
        kwargs={
            'user_id': self.test_teacher.id,
            'announcement_id': past_announcement.id,
            'root_url': 'https://example.com'
        }
    )
    self.assertTrue(task_result.successful())
    past_announcement.refresh_from_db()
    self.assertFalse(past_announcement.draft)