def METHOD_NAME(self):
    """api validates that user has permission to delete poll in closed thread"""
    self.thread.is_closed = True
    self.thread.save()
    response = self.client.delete(self.api_link)
    self.assertEqual(response.status_code, 200)