def METHOD_NAME(self):
    """Tester la suppression de la video et la suppression en cascade."""
    video_to_encode = Video.objects.get(id=1)
    video = video_to_encode.video.path
    video_dir = os.path.join(os.path.dirname(video), "%04d" % video_to_encode.id)
    log_file = os.path.join(video_dir, "info_video.json")
    list_mp2t = EncodingVideo.objects.filter(
        video=video_to_encode, encoding_format="video/mp2t"
    )
    list_playlist_video = PlaylistVideo.objects.filter(
        video=video_to_encode, encoding_format="application/x-mpegURL"
    )
    playlist_master = PlaylistVideo.objects.get(
        name="playlist",
        video=video_to_encode,
        encoding_format="application/x-mpegURL",
    )
    playlist_master_file = playlist_master.source_file.path
    list_mp4 = EncodingVideo.objects.filter(
        video=video_to_encode, encoding_format="video/mp4"
    )
    image_overview = os.path.join(
        os.path.dirname(video_to_encode.overview.path), "overview.png"
    )
    self.assertTrue(os.path.isfile(image_overview))
    self.assertTrue(video_to_encode.thumbnail.file_exist())
    image_thumbnail = video_to_encode.thumbnail.file.path
    video_to_encode.delete()
    self.assertFalse(os.path.exists(video))
    self.assertFalse(os.path.exists(log_file))
    self.assertFalse(os.path.exists(playlist_master_file))
    self.assertFalse(os.path.exists(image_overview))
    self.assertFalse(os.path.exists(image_thumbnail))
    self.assertEqual(list_mp2t.count(), 0)
    self.assertEqual(list_playlist_video.count(), 0)
    self.assertEqual(list_mp4.count(), 0)
    self.assertEqual(EncodingLog.objects.filter(video__id=1).count(), 0)
    # check video folder remove
    self.assertFalse(os.path.isdir(video_dir))
    audio = Video.objects.get(id=2)
    audio_video_path = audio.video.path
    audio_dir = os.path.join(os.path.dirname(audio_video_path), "%04d" % audio.id)
    audio_log_file = os.path.join(audio_dir, "info_video.json")
    audio.delete()
    self.assertTrue(not os.path.exists(audio_video_path))
    self.assertTrue(not os.path.exists(audio_log_file))
    # check audio folder remove
    self.assertFalse(os.path.isdir(audio_dir))
    print("   --->  test_delete_object of EncodeTestCase: OK!")