def METHOD_NAME(self):
    """api validates that user's window to delete poll in thread has closed"""
    self.poll.posted_on = timezone.now() - timedelta(days=15)
    self.poll.length = 5
    self.poll.save()
    response = self.client.delete(self.api_link)
    self.assertEqual(response.status_code, 403)
    self.assertEqual(
        response.json(), {"detail": "This poll is over. You can't delete it."}
    )