def METHOD_NAME(self):
    """Test if video encoding worked properly."""
    # video id=1 et audio id=2
    video_to_encode = Video.objects.get(id=1)
    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"
    )
    list_playlist_master = PlaylistVideo.objects.get(
        name="playlist",
        video=video_to_encode,
        encoding_format="application/x-mpegURL",
    )
    list_mp4 = EncodingVideo.objects.filter(
        video=video_to_encode, encoding_format="video/mp4"
    )
    el = EncodingLog.objects.get(video=video_to_encode)
    self.assertTrue("NO VIDEO AND AUDIO FOUND" not in el.log)
    self.assertTrue(len(list_mp2t) > 0)
    self.assertEqual(len(list_mp2t) + 1, len(list_playlist_video))
    self.assertTrue(list_playlist_master)
    self.assertTrue(len(list_mp4) > 0)
    self.assertTrue(video_to_encode.overview)
    self.assertTrue(video_to_encode.thumbnail)
    print(" --->  test_encode_video of EncodeTestCase: OK!")