def METHOD_NAME(self):
    """
    Test available videos for encoding.
    """
    vid1 = Video.objects.get(id=1)
    vid2 = Video.objects.get(id=2)
    vid3 = Video.objects.get(id=3)
    vid1.is_draft = False
    vid1.save()
    vids = Video.objects.filter(**__AVAILABLE_VIDEO_FILTER__)
    self.assertEqual(vids.count(), 1)
    EncodingVideo.objects.create(
        video=vid1,
        encoding_format="video/mp4",
        rendition=VideoRendition.objects.get(id=1),
    )
    vids = get_available_videos()
    self.assertEqual(vids.count(), 1)
    vid1.is_draft = True
    vid1.save()
    vids = get_available_videos()
    self.assertEqual(vids.count(), 0)
    plvid2 = PlaylistVideo.objects.create(
        video=vid2, name="playlist", encoding_format="application/x-mpegURL"
    )
    vids = get_available_videos()
    self.assertEqual(vids.count(), 0)
    vid2.is_draft = False
    vid2.save()
    vids = get_available_videos()
    self.assertEqual(vids.count(), 1)
    vid1.is_draft = False
    vid1.save()
    vids = get_available_videos()
    self.assertEqual(vids.count(), 2)
    eavid3 = EncodingAudio.objects.create(
        video=vid3, name="audio", encoding_format="video/mp4"
    )
    vids = get_available_videos()
    self.assertEqual(vids.count(), 2)
    vid3.is_draft = False
    vid3.save()
    vids = get_available_videos()
    self.assertEqual(vids.count(), 3)
    plvid1 = PlaylistVideo.objects.create(
        video=vid1, name="playlist", encoding_format="application/x-mpegURL"
    )
    vids = get_available_videos()
    self.assertEqual(vids.count(), 3)
    plvid2.delete()
    vids = get_available_videos()
    self.assertEqual(vids.count(), 2)
    eavid3.delete()
    vids = get_available_videos()
    self.assertEqual(vids.count(), 1)
    plvid1.delete()
    vids = get_available_videos()
    self.assertEqual(vids.count(), 1)