def METHOD_NAME(self):
    """delete attachment view has no showstoppers"""
    attachment = self.mock_attachment(self.post)
    self.post.attachments_cache = [
        {"id": attachment.pk + 1},
        {"id": attachment.pk},
        {"id": attachment.pk + 2},
    ]
    self.post.save()
    action_link = reverse(
        "misago:admin:attachments:delete", kwargs={"pk": attachment.pk}
    )
    response = self.client.post(action_link)
    self.assertEqual(response.status_code, 302)
    # clean alert about item, grab final list url
    final_link = self.client.get(self.admin_link)["location"]
    response = self.client.get(final_link)
    self.assertEqual(response.status_code, 200)
    self.assertNotContains(response, action_link)
    # assert it was removed from post's attachments cache
    attachments_cache = self.category.post_set.get(
        pk=self.post.pk
    ).attachments_cache
    self.assertEqual(
        attachments_cache, [{"id": attachment.pk + 1}, {"id": attachment.pk + 2}]
    )