def METHOD_NAME(self):
    """Playlist administrators cannot delete playlists with Markdown document."""
    user = factories.UserFactory()
    playlist = factories.PlaylistFactory()
    factories.PlaylistAccessFactory(
        user=user, playlist=playlist, role=models.ADMINISTRATOR
    )
    MarkdownDocumentFactory(playlist=playlist)
    jwt_token = UserAccessTokenFactory(user=user)
    self.assertEqual(models.Playlist.objects.count(), 1)
    response = self.client.delete(
        f"/api/playlists/{playlist.id}/",
        HTTP_AUTHORIZATION=f"Bearer {jwt_token}",
    )
    self.assertEqual(response.status_code, 400)
    self.assertEqual(response.json(), "Resources are still attached to playlist")
    self.assertEqual(models.Playlist.objects.count(), 1)