

def test_bulk_destroy__should_not_destroy_if_client_has_no_permissions(self):
    resp = self.client.delete('/comments-with-permission/', **self.protection_headers)
    self.assertEqual(resp.status_code, 404)
    self.assertEqual(Comment.objects.count(), 2)

dataset/ETHPy150Open chibisov/drf-extensions/tests_app/tests/functional/mixins/list_destroy_model_mixin/tests.py ListDestroyModelMixinTest.test_bulk_destroy__should_not_destroy_if_client_has_no_permissions/original