def METHOD_NAME(self):
    """api tests thread's closed state"""
    closed_thread = self.threads[1]
    closed_thread.is_closed = True
    closed_thread.save()
    response = self.delete(self.api_link, [p.id for p in self.threads])
    self.assertEqual(response.status_code, 400)
    self.assertEqual(
        response.json(),
        [
            {
                "thread": {"id": closed_thread.pk, "title": closed_thread.title},
                "error": "This thread is closed. You can't delete it.",
            }
        ],
    )